The actual code and protocol used will depend on the type of computer: The most common types of keyboards are the 84 key keyboard typically used with the IBM PC XT (Code 1) and the enhanced 101/102 key keyboard typically associated with the IBM PC AT (Code 2).