Keycode Table
| Keycode
| PC
| Macintosh
|
|---|
| US 101/104
| Japanese 106/109
| Japanese PC-98 *3
| US
| Japanese(JIS) *4
|
| 0x01 | Esc | | ESC | esc |
|
|---|
| 0x02 | F1 | | f.1 | F1 *5 |
|
|---|
| 0x03 | F2 | | f.2 | F2 *5 |
|
|---|
| 0x04 | F3 | | f.3 | F3 *5 |
|
|---|
| 0x05 | F4 | | f.4 | F4 *5 |
|
|---|
| 0x06 | F5 | | f.5 | F5 *5 |
|
|---|
| 0x07 | F6 | | f.6 | F6 *5 |
|
|---|
| 0x08 | F7 | | f.7 | F7 *5 |
|
|---|
| 0x09 | F8 | | f.8 | F8 *5 |
|
|---|
| 0x0a | F9 | | f.9 | F9 *5 |
|
|---|
| 0x0b | F10 | | f.10 | F10 *5 |
|
|---|
| 0x0c | F11 | | vf.1 | F11 *5 |
|
|---|
| 0x0d | F12 | | vf.2 | F12 *5 |
|
|---|
| 0x0e | Print Screen | | COPY | F13 *5 |
|
|---|
| 0x0f | Scroll Lock | | vf.4 | F14 *5 |
|
|---|
| 0x10 | Pause | | STOP | F15 *5 |
|
|---|
| 0x11 | ` | Hankaku/Zenkaku | vf.5 | ` | NOT USED
|
|---|
| 0x12 | 1 | | | |
|
|---|
| 0x13 | 2 | | | |
|
|---|
| 0x14 | 3 | | | |
|
|---|
| 0x15 | 4 | | | |
|
|---|
| 0x16 | 5 | | | |
|
|---|
| 0x17 | 6 | | | |
|
|---|
| 0x18 | 7 | | | |
|
|---|
| 0x19 | 8 | | | |
|
|---|
| 0x1a | 9 | | | |
|
|---|
| 0x1b | 0 | | | |
|
|---|
| 0x1c | - | | | |
|
|---|
| 0x1d | = | ^ | | = | ^
|
|---|
| 0x1e | Backspace | | BS | delete |
|
|---|
| 0x1f | Insert | | INS | help *5 |
|
|---|
| 0x20 | Home | | HOME CLR | home *5 |
|
|---|
| 0x21 | Page Up | | ROLL DOWN | page up *5 |
|
|---|
| 0x22 | NumLock | | vf.3 | clear |
|
|---|
| 0x23 | Keypad / | | | |
|
|---|
| 0x24 | Keypad * | | | |
|
|---|
| 0x25 | Keypad - | | | |
|
|---|
| 0x26 | Tab | | TAB | tab |
|
|---|
| 0x27 | Q | | | |
|
|---|
| 0x28 | W | | | |
|
|---|
| 0x29 | E | | | |
|
|---|
| 0x2a | R | | | |
|
|---|
| 0x2b | T | | | |
|
|---|
| 0x2c | Y | | | |
|
|---|
| 0x2d | U | | | |
|
|---|
| 0x2e | I | | | |
|
|---|
| 0x2f | O | | | |
|
|---|
| 0x30 | P | | | |
|
|---|
| 0x31 | [ | @ | | [ | @
|
|---|
| 0x32 | ] | [ | | ] | [
|
|---|
| 0x33 | \ | ] | | \ | ]
|
|---|
| 0x34 | Delete | | DEL | del *5 |
|
|---|
| 0x35 | End | | HELP | end *5 |
|
|---|
| 0x36 | Page Down | | ROLL UP | page down *5 |
|
|---|
| 0x37 | Keypad 7/Home | | Keypad 7 | |
|
|---|
| 0x38 | Keypad 8/Up | | Keypad 8 | |
|
|---|
| 0x39 | Keypad 9/PgUp | | Keypad 9 | |
|
|---|
| 0x3a | Keypad + | | | |
|
|---|
| 0x3b | Caps Lock | | CAPS | caps lock |
|
|---|
| 0x3c | A | | | |
|
|---|
| 0x3d | S | | | |
|
|---|
| 0x3e | D | | | |
|
|---|
| 0x3f | F | | | |
|
|---|
| 0x40 | G | | | |
|
|---|
| 0x41 | H | | | |
|
|---|
| 0x42 | J | | | |
|
|---|
| 0x43 | K | | | |
|
|---|
| 0x44 | L | | | |
|
|---|
| 0x45 | ; | | | |
|
|---|
| 0x46 | ' | : | | ' | :
|
|---|
| 0x47 | Enter | | RETURN | return |
|
|---|
| 0x48 | Keypad 4/Left | | Keypad 4 | |
|
|---|
| 0x49 | Keypad 5 | | | |
|
|---|
| 0x4a | Keypad 6/Right | | Keypad 6 | |
|
|---|
| 0x4b | Left Shift | | Left SHIFT | Left shift |
|
|---|
| 0x4c | Z | | | |
|
|---|
| 0x4d | X | | | |
|
|---|
| 0x4e | C | | | |
|
|---|
| 0x4f | V | | | |
|
|---|
| 0x50 | B | | | |
|
|---|
| 0x51 | N | | | |
|
|---|
| 0x52 | M | | | |
|
|---|
| 0x53 | , | | | |
|
|---|
| 0x54 | . | | | |
|
|---|
| 0x55 | / | | | |
|
|---|
| 0x56 | Right Shift | | Right SHIFT | Right shift |
|
|---|
| 0x57 | Up Arrow | | | |
|
|---|
| 0x58 | Keypad 1/End | | Keypad 1 | |
|
|---|
| 0x59 | Keypad 2/Down | | Keypad 2 | |
|
|---|
| 0x5a | Keypad 3/PgDn | | Keypad 3 | |
|
|---|
| 0x5b | Keypad Enter | | Keypad RETURN | Keypad enter |
|
|---|
| 0x5c | Left Ctrl | | Left CTRL | Left control |
|
|---|
| 0x5d | Left Alt | | GRPH | Left Command *9 |
|
|---|
| 0x5e | Space | | | |
|
|---|
| 0x5f | Right Alt (AltGr) | | NOT USED | Right Command *5 *9 |
|
|---|
| 0x60 | Right Ctrl | | NOT USED | Right control *5 |
|
|---|
| 0x61 | Left Arrow | | | |
|
|---|
| 0x62 | Down Arrow | | | |
|
|---|
| 0x63 | Right Arrow | | | |
|
|---|
| 0x64 | Keypad 0/Ins | | Keypad 0 | |
|
|---|
| 0x65 | Keypad ./Del | | Keypad . | |
|
|---|
| 0x66 | Left Windows *1 | | Left Windows | Left option *9 |
|
|---|
| 0x67 | Right Windowns *1 | | Right Windows | Right option *5 *9 |
|
|---|
| 0x68 | Application *1 | | Application | NOT USED *6 |
|
|---|
| 0x69 | NOT USED *2 | NOT USED | | NOT USED |
|
|---|
| 0x6a | NOT USED | Yen *7 *10 | | Keypad = | Keypad = (Yen) *7 *8
|
|---|
| 0x6b | NOT USED | _ *7 | | Power | Power (_) *7 *8
|
|---|
| 0x6c | NOT USED | Muhenkan *7 | NFER | NOT USED | NOT USED
|
|---|
| 0x6d | NOT USED | Henkan *7 | XFER | NOT USED | NOT USED
|
|---|
| 0x6e | NOT USED | Hiragana/katakana *7 | Kana | NOT USED | NOT USED
|
|---|
| 0x6f | NOT USED | | | |
|
|---|
| 0x70 | NOT USED | | | |
|
|---|
| 0x71 | NOT USED | | | |
|
|---|
| 0x72 | NOT USED | | | |
|
|---|
| 0x73 | NOT USED | | | |
|
|---|
| 0x74 | NOT USED | | | |
|
|---|
| 0x75 | NOT USED | | | |
|
|---|
| 0x76 | NOT USED | | | |
|
|---|
| 0x77 | NOT USED | | | |
|
|---|
| 0x78 | NOT USED | | | |
|
|---|
| 0x79 | NOT USED | | | |
|
|---|
| 0x7a | NOT USED | | | |
|
|---|
| 0x7b | NOT USED | | | |
|
|---|
| 0x7c | NOT USED | | | |
|
|---|
| 0x7d | NOT USED | | | |
|
|---|
| 0x7e | SysRq | | NOT USED | NOT USED |
|
|---|
| 0x7f | Break | | NOT USED | NOT USED |
|
|---|
Footnotes
- Windows keyboard only
- Used in European 102/105 keyboard
- USB keyboard; has Keypad equal and Keypad comma
- Has Eisu(Alphanumeric), Hiragana/Katakana, enter and Keypad comma
- Some keyboards lack these keys
- Internal use for invalid keycode
- Unavailable in R4.5.x due to a bug
- Keycodes conflict
- Command keys and option keys are swapped in USB keyboard
| BeOS keycode | USB terminology | PC USB keyboard | Mac USB keyboard
|
|---|
| 0x5d, 0x5f | Alt keys | Alt keys | option (alt) keys
|
| 0x66, 0x67 | GUI keys | Windows keys | Command (Apple) keys
|
- Brazilian ABNT keyboard also has this key as '/' and '?'
References
Keymaps and Info
Hardware
Bug Reports
Books
- Nadine Kano, "Developing International Software for Windows 95 and Windows NT", Microsoft Press
- "IBM DOS J5.0/V User's Guide", IBM Japan