A code number transmitted to an IBM or compatible computer whenever a key is pressed or released. Each key on the keyboard has a unique scan code. This code is not the same as the ASCII code for the letter, number, or symbol shown on the key; it is a special identifier for the key itself and is always the same for a particular key. When a key is pressed, the scan code is transmitted to the computer, where a portion of the ROM BIOS (read-only memory basic input/output system) dedicated to the keyboard translates the scan code into its ASCII equivalent. Because a single key can generate more than one character (lowercase a and uppercase A, for example), the ROM BIOS also keeps track of the status of keys that change the keyboard state, such as the Shift key, and takes them into account when translating a scan code. Compare key code.