qbasic.hlp (Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
Keyboard Scan Codes
  Contents  Index  Back
──────────────────────────────────────────────────────────────────────────────
     Key       Code    ║     Key          Code    ║     Key          Code
                       ║                          ║
     Esc       1       ║     A            30      ║     Caps Lock    58
     ! or 1    2       ║     S            31      ║     F1           59
     @ or 2    3       ║     D            32      ║     F2           60
     # or 3    4       ║     F            33      ║     F3           61
     $ or 4    5       ║     G            34      ║     F4           62
     % or 5    6       ║     H            35      ║     F5           63
     ^ or 6    7       ║     J            36      ║     F6           64
     & or 7    8       ║     K            37      ║     F7           65
     * or 8    9       ║     L            38      ║     F8           66
     ( or 9    10      ║     : or ;       39      ║     F9           67
     ) or 0    11      ║     " or '       40      ║     F10          68
     _ or -    12      ║     ~ or `       41      ║     F11          133
     + or =    13      ║     Left Shift   42      ║     F12          134
     Bksp      14      ║     | or \       43      ║     NumLock      69
     Tab       15      ║     Z            44      ║     Scroll Lock  70
     Q         16      ║     X            45      ║     Home or 7    71
     W         17      ║     C            46      ║     Up or 8      72
     E         18      ║     V            47      ║     PgUp or 9    73
     R         19      ║     B            48      ║     Gray -       74
     T         20      ║     N            49      ║     Left or 4    75
     Y         21      ║     M            50      ║     Center or 5  76
     U         22      ║     < or ,       51      ║     Right or 6   77
     I         23      ║     > or .       52      ║     Gray +       78
     O         24      ║     ? or /       53      ║     End or 1     79
     P         25      ║     Right Shift  54      ║     Down or 2    80
     { or [    26      ║     Prt Sc or *  55      ║     PgDn or 3    81
     } or ]    27      ║     Alt          56      ║     Ins or 0     82
     Enter     28      ║     Spacebar     57      ║     Del or .     83
     Ctrl      29      ║                          ║