Keycode Table

Keycode PC Macintosh
US 101/104 Japanese 106/109 Japanese PC-98 *3 US Japanese(JIS) *4
0x01Esc
ESC esc
0x02F1
f.1 F1 *5
0x03F2
f.2 F2 *5
0x04F3
f.3 F3 *5
0x05F4
f.4 F4 *5
0x06F5
f.5 F5 *5
0x07F6
f.6 F6 *5
0x08F7
f.7 F7 *5
0x09F8
f.8 F8 *5
0x0aF9
f.9 F9 *5
0x0bF10
f.10 F10 *5
0x0cF11
vf.1 F11 *5
0x0dF12
vf.2 F12 *5
0x0ePrint Screen
COPY F13 *5
0x0fScroll Lock
vf.4 F14 *5
0x10Pause
STOP F15 *5
0x11` Hankaku/Zenkakuvf.5 ` NOT USED
0x121



0x132



0x143



0x154



0x165



0x176



0x187



0x198



0x1a9



0x1b0



0x1c-



0x1d= ^
= ^
0x1eBackspace
BS delete
0x1fInsert
INS help *5
0x20Home
HOME CLR home *5
0x21Page Up
ROLL DOWN page up *5
0x22NumLock
vf.3 clear
0x23Keypad /



0x24Keypad *



0x25Keypad -



0x26Tab
TAB tab
0x27Q



0x28W



0x29E



0x2aR



0x2bT



0x2cY



0x2dU



0x2eI



0x2fO



0x30P



0x31[ @
[ @
0x32] [
] [
0x33\ ]
\ ]
0x34Delete
DEL del *5
0x35End
HELP end *5
0x36Page Down
ROLL UP page down *5
0x37Keypad 7/Home
Keypad 7

0x38Keypad 8/Up
Keypad 8

0x39Keypad 9/PgUp
Keypad 9

0x3aKeypad +



0x3bCaps Lock
CAPS caps lock
0x3cA



0x3dS



0x3eD



0x3fF



0x40G



0x41H



0x42J



0x43K



0x44L



0x45;



0x46' :
' :
0x47Enter
RETURN return
0x48Keypad 4/Left
Keypad 4

0x49Keypad 5



0x4aKeypad 6/Right
Keypad 6

0x4bLeft Shift
Left SHIFT Left shift
0x4cZ



0x4dX



0x4eC



0x4fV



0x50B



0x51N



0x52M



0x53,



0x54.



0x55/



0x56Right Shift
Right SHIFT Right shift
0x57Up Arrow



0x58Keypad 1/End
Keypad 1

0x59Keypad 2/Down
Keypad 2

0x5aKeypad 3/PgDn
Keypad 3

0x5bKeypad Enter
Keypad RETURNKeypad enter
0x5cLeft Ctrl
Left CTRL Left control
0x5dLeft Alt
GRPH Left Command *9
0x5eSpace



0x5fRight Alt (AltGr)
NOT USED Right Command *5 *9
0x60Right Ctrl
NOT USED Right control *5
0x61Left Arrow



0x62Down Arrow



0x63Right Arrow



0x64Keypad 0/Ins
Keypad 0

0x65Keypad ./Del
Keypad .

0x66Left Windows *1
Left WindowsLeft option *9
0x67Right Windowns *1
Right WindowsRight option *5 *9
0x68Application *1
Application NOT USED *6
0x69NOT USED *2 NOT USED
NOT USED
0x6aNOT USED Yen *7 *10
Keypad = Keypad = (Yen) *7 *8
0x6bNOT USED _ *7
Power Power (_) *7 *8
0x6cNOT USED Muhenkan *7 NFER NOT USED NOT USED
0x6dNOT USED Henkan *7 XFER NOT USED NOT USED
0x6eNOT USED Hiragana/katakana *7KanaNOT USED NOT USED
0x6fNOT USED



0x70NOT USED



0x71NOT USED



0x72NOT USED



0x73NOT USED



0x74NOT USED



0x75NOT USED



0x76NOT USED



0x77NOT USED



0x78NOT USED



0x79NOT USED



0x7aNOT USED



0x7bNOT USED



0x7cNOT USED



0x7dNOT USED



0x7eSysRq
NOT USED NOT USED
0x7fBreak
NOT USED NOT USED

Footnotes

  1. Windows keyboard only
  2. Used in European 102/105 keyboard
  3. USB keyboard; has Keypad equal and Keypad comma
  4. Has Eisu(Alphanumeric), Hiragana/Katakana, enter and Keypad comma
  5. Some keyboards lack these keys
  6. Internal use for invalid keycode
  7. Unavailable in R4.5.x due to a bug
  8. Keycodes conflict
  9. 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
  10. Brazilian ABNT keyboard also has this key as '/' and '?'

References

Keymaps and Info

Hardware

Bug Reports

Books