Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- The Guide To Clipper - <b>keyboard codes</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
Keyboard Codes


   The following tables represent values returned by INKEY(), LASTKEY(),
   and NEXTKEY() for keystrokes fetched from the keyboard buffer.

   Table: Keypad Keys
   -------------------------------------
    Key                         Code
   -------------------------------------
    Uparrow, Ctrl-E               5
    Dnarrow, Ctrl-X               2
    Leftarrow, Ctrl-S            19
    Rightarrow, Ctrl-D            4
    Home, Ctrl-A                  1
    End, Ctrl-F                   6
    PgUp, Ctrl-R                 18
    PgDn, Ctrl-C                  3

    Backspace, Ctrl-H             8
    Return, Ctrl-M               13
    Esc, Ctrl-[                  27

    Ctrl-Leftarrow, Ctrl-Z       26
    Ctrl-Rightarrow, Ctrl-B       2
    Ctrl-Home, Ctrl-]            29
    Ctrl-End, Ctrl-W             23
    Ctrl-PgUp, Ctrl-Hyphen       31
    Ctrl-PgDn, Ctrl-^            30
    Ctrl-Backspace              127
    Ctrl-Return                  10
    Ctrl-ScrollLock, Ctrl-C       3
    Ctrl-PrtSc                   16
   -------------------------------------


   Table: Editing keys
   -------------------------------------
    Key                 Code
   -------------------------------------
    Del, Ctrl-G           7
    Tab, Ctrl-I           9
    Shift-Tab           271
    Ins, Ctrl-V          22
   -------------------------------------


   Table: Control Keys
   -------------------------------------
    Key                 Code
   -------------------------------------
    Ctrl-A                1
    Ctrl-B                2
    Ctrl-C                3
    Ctrl-D                4
    Ctrl-E                5
    Ctrl-F                6
    Ctrl-G                7
    Ctrl-H                8
    Ctrl-I                9
    Ctrl-J               10
    Ctrl-K               11
    Ctrl-L               12
    Ctrl-M               13
    Ctrl-N               14
    Ctrl-O               15
    Ctrl-P               16
    Ctrl-Q               17
    Ctrl-R               18
    Ctrl-S               19
    Ctrl-T               20
    Ctrl-U               21
    Ctrl-V               22
    Ctrl-W               23
    Ctrl-X               24
    Ctrl-Y               25
    Ctrl-Z               26
    Ctrl-[               27
    Ctrl-\               28
    Ctrl-]               29
    Ctrl-^               30
    Ctrl--               31
    Ctrl-@              259
   -------------------------------------


   Table: Alt Keys
   -------------------------------------
    Key                 Code
   -------------------------------------
    Alt-A               286
    Alt-B               304
    Alt-C               302
    Alt-D               288
    Alt-E               274
    Alt-F               289
    Alt-G               290
    Alt-H               291
    Alt-I               279
    Alt-J               292
    Alt-K               293
    Alt-L               294
    Alt-M               306
    Alt-N               305
    Alt-O               280
    Alt-P               281
    Alt-Q               272
    Alt-R               275
    Alt-S               287
    Alt-T               276
    Alt-U               278
    Alt-V               303
    Alt-W               273
    Alt-X               301
    Alt-Y               277
    Alt-Z               300
   -------------------------------------


   Table: Function Keys
   -------------------------------------
    Key                 Code
   -------------------------------------
    F1, Ctrl-\          28
    F2                  -1
    F3                  -2
    F4                  -3
    F5                  -4
    F6                  -5
    F7                  -6
    F8                  -7
    F9                  -8
    F10                 -9
   -------------------------------------


   Table: Control-Function Keys
   -------------------------------------
    Key                 Code
   -------------------------------------
    Ctrl-F1             -20
    Ctrl-F2             -21
    Ctrl-F4             -22
    Ctrl-F3             -23
    Ctrl-F5             -24
    Ctrl-F6             -25
    Ctrl-F7             -26
    Ctrl-F8             -27
    Ctrl-F9             -28
    Ctrl-F10            -29
   -------------------------------------


   Table: Alt-Function Keys
   -------------------------------------
    Key                 Code
   -------------------------------------
    Alt-F1              -30
    Alt-F2              -31
    Alt-F3              -32
    Alt-F4              -33
    Alt-F5              -34
    Alt-F6              -35
    Alt-F7              -36
    Alt-F8              -37
    Alt-F9              -38
    Alt-F10             -39
   -------------------------------------

   Table: Shift-Function Keys
   -------------------------------------
    Key                 Code
   -------------------------------------
    Shift-F1            -10
    Shift-F2            -11
    Shift-F3            -12
    Shift-F4            -13
    Shift-F5            -14
    Shift-F6            -15
    Shift-F7            -16
    Shift-F8            -17
    Shift-F9            -18
    Shift-F10           -19
   -------------------------------------

See Also: KEYBOARD SET KEY INKEY() LASTKEY() NEXTKEY()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson