Keycode Table

NIMH MonkeyLogic can log the states of key presses at milliseconds intervals. To record the key states to the data file, you need to put the codes of the keys in the Mouse/Key menu. Use the following table to find the key codes. For more information, see https://docs.microsoft.com/en-us/windows/desktop/inputdev/virtual-key-codes.

1
2
3
4
5
6
7
BACKSPACE8
TAB9
10
11
12
ENTER13
14
15
SHIFT16
CTRL17
ALT18
PAUSE19
CAPS LOCK20
HANGUL21
22
23
24
25
26
ESC27
28
29
30
31
SPACEBAR32
PAGE UP33
PAGE DOWN34
END35
HOME36
LEFT ARROW37
UP ARROW38
RIGHT ARROW39
DOWN ARROW40
41
42
43
PRINT SCREEN44
INS45
DEL46
47
048
149
250
351
452
553
654
755
856
957
58
59
60
61
62
63
64
A65
B66
C67
D68
E69
F70
G71
H72
I73
J74
K75
L76
M77
N78
O79
P80
Q81
R82
S83
T84
U85
V86
W87
X88
Y89
Z90
Left Windows91
Right Windows92
93
94
Sleep95
Num 096
Num 197
Num 298
Num 399
Num 4100
Num 5101
Num 6102
Num 7103
Num 8104
Num 9105
MULTIPLY106
ADD107
108
SUBTRACT109
DECIMAL110
DIVIDE111
F1112
F2113
F3114
F4115
F5116
F6117
F7118
F8119
F9120
F10121
F11122
F12123
F13124
F14125
F15126
F16127
F17128
F18129
F19130
F20131
F21132
F22133
F23134
F24135
136
137
138
139
140
141
142
143
NUM LOCK144
SCROLL LOCK145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
Left SHIFT160
Right SHIFT161
Left CTRL162
Right CTRL163
164
165
166
167
168
169
170
171
Browser Start172
Volumn Mute173
Volumn Down174
Volumn Up175
Next Track176
Previous Track177
Stop Media178
Play/Pause Media179
Start Mail180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200

The National Institute of Mental Health (NIMH) is part of the National Institutes of Health (NIH), a component of the U.S. Department of Health and Human Services.