Key codes
KEY_CODES [Key]
MOUSE1
0x01
MOUSE2
0x02
CANCEL
0x03
MOUSE3
0x04
MOUSE4
0x05
MOUSE5
0x06
BACKSPACE
0x08
TAB
0x09
CLEAR
0x0C
ENTER
0x0D
RETURN
0x0D
SHIFT
0x10
CTRL
0x11
CONTROL
0x11
ALT
0x12
PAUSE_BREAK
0x13
CAPS_LOCK
0x14
KANA
0x15
HANGUL
0x15
JUNJA
0x17
FINAL
0x18
HANA
0x19
KANJI
0x19
ESCAPE
0x1B
ESC
0x1B
CONVERT
0x1C
NONCONVERT
0x1D
ACCEPT
0x1E
MODECHANGE
0x1F
SPACE
0x20
PAGE_UP
0x21
PAGE_DOWN
0x22
END
0x23
HOME
0x24
LEFT_ARROW
0x25
UP_ARROW
0x26
RIGHT_ARROW
0x27
DOWN_ARROW
0x28
SELECT
0x29
0x21
EXECUTE
0x2B
PRINT_SCREEN
0x2C
INSERT
0x2D
DELETE
0x2E
HELP
0x2F
0
0x30
1
0x31
2
0x32
3
0x33
4
0x34
5
0x35
6
0x36
7
0x37
8
0x38
9
0x39
A
0x41
B
0x42
C
0x43
D
0x44
E
0x45
F
0x46
G
0x47
H
0x48
I
0x49
J
0x4A
K
0x4B
L
0x4C
M
0x4D
N
0x4E
O
0x4F
P
0x50
Q
0x51
R
0x52
S
0x53
T
0x54
U
0x55
V
0x56
W
0x57
X
0x58
Y
0x69
Z
0x5A
LEFT_WIN
0x5B
RIGHT_WIN
0x5C
APPS
0x5D
SLEEP
0x5F
NUMPAD0
0x60
NUMPAD1
0x61
NUMPAD2
0x62
NUMPAD3
0x63
NUMPAD4
0x64
NUMPAD5
0x65
NUMPAD6
0x66
NUMPAD7
0x67
NUMPAD8
0x68
NUMPAD9
0x69
MULTIPLY
0x6A
ADD
0x6B
SEPERATOR
0x6C
SUBTRACT
0x6D
DECIMAL
0x6E
DIVIDE
0x6F
F1
0x70
F2
0x71
F3
0x72
F4
0x73
F5
0x74
F6
0x75
F7
0x76
F8
0x77
F9
0x78
F10
0x79
F11
0x7A
F12
0x7B
F13
0x7C
F14
0x7D
F15
0x7E
F16
0x7F
F17
0x80
F18
0x81
F19
0x82
F20
0x83
F21
0x84
F22
0x85
F23
0x86
F24
0x87
NUM_LOCK
0x90
SCROLL_LOCK
0x91
LSHIFT
0xA0
RSHIFT
0xA1
LCTRL
0xA2
RCTRL
0xA3
LALT
0xA4
RALT
0xA5
BROWSER_BACK
0xA6
BROWSER_FORWARD
0xA7
BROWSER_REFRESH
0xA8
BROWSER_STOP
0xA9
BROWSER_SEARCH
0xAA
BROWSER_FAVORITES
0xAB
BROWSER_HOME
0xAC
VOLUME_MUTE
0xAD
VOLUME_DOWN
0xAE
VOLUME_UP
0xAF
MEDIA_NEXT_TRACK
0xB0
MEDIA_PREV_TRACK
0xB1
MEDIA_STOP
0xB2
MEDIA_PLAY_PAUSE
0xB3
LAUNCH_MAIL
0xB4
LAUNCH_MEDIA_SELECT
0xB5
LAUNCH_APP1
0xB6
LAUNCH_APP2
0xB7
SEMICOLON
0xBA
COLON
0xBA
PLUS
0xBB
EQUAL
0xBB
COMMA
0xBC
MINUS
0xBD
UNDERSCORE
0xBD
PERIOD
0xBE
DOT
0xBE
SLASH
0xBF
FORWARD_SLASH
0xBF
GRAVE_ACCENT
0xC0
TILDE
0xC0
LEFT_BRACKET
0xDB
BACKSLASH
0xDC
RIGHT_BRACKET
0xDD
APOSTROPHE
0xDE
QUOTE
0xDE
OEM_8
0xDF
OEM_102
0xE2
PROCESS_KEY
0xE5
PACKET
0xE7
ATTN
0xF6
CRSEL
0xF7
EXSEL
0xF8
EREOF
0xF9
PLAY
0xFA
ZOOM
0xFB
NONAME
0xFC
PA1
0xFD
OEM_CLEAR
0xFE
Last updated