KeyCode

Represents a physical key (or scancode), using QWERTY US keymap as basis. I.e. the key "A" on an AZERTY keyboard is represented by Code.Q. This enum has 256 values and is a perfect candidate for index based look-up table. Values of enumerants are from the USB HID scancodes table.

Values

ValueMeaning
none0
errorRollOver1
postFail2
errorUndefined3
a4
b5
c6
d7
e8
f9
g10
h11
i12
j13
k14
l15
m16
n17
o18
p19
q20
r21
s22
t23
u24
v25
w26
x27
y28
z29
d130
d231
d332
d433
d534
d635
d736
d837
d938
d039
enter40
escape41
backspace42
tab43
space44
minus45
equals46
leftBracket47
rightBracket48
backslash49
uK_Hash50
semicolon51
quote52
grave53
comma54
period55
slash56
capsLock57
f158
f259
f360
f461
f562
f663
f764
f865
f966
f1067
f1168
f1269
printScreen70
scrollLock71
pause72
insert73
home74
pageUp75
delete_76
end77
pageDown78
left80
down81
up82
kp_NumLock83
kp_Divide84
kp_Multiply85
kp_Subtract86
kp_Add87
kp_Enter88
kp_189
kp_290
kp_391
kp_492
kp_593
kp_694
kp_795
kp_896
kp_997
kp_098
kp_Period99
uK_Backslash100
kp_Equal103
f13104
f14105
f15106
f16107
f17108
f18109
f19110
f20111
f21112
f22113
f23114
f24115
execute116
help117
select119
stop120
again121
undo122
cut123
copy124
paste125
find126
mute127
volumeUp128
volumeDown129
lockingCapsLock130
lockingNumLock131
lockingScrollLock132
kp_Comma133
kp_EqualSign134
international1135
international2136
international3137
international4138
international5139
international6140
international7141
international8142
international9143
lang1144
lang2145
lang3146
lang4147
lang5148
lang6149
lang7150
lang8151
lang9152
altErase153
sysReq154
cancel155
clear156
prior157
return_158
separator159
out_160
oper161
clearAgain162
crSelProps163
exSel164
kp_00176
kp_000177
thousandsSep178
decimalSep179
currencyUnit180
currencySubUnit181
kp_LeftParent182
kp_RightParent183
kp_LeftCurly184
kp_RightCurly185
kp_Tab186
kp_Backspace187
kp_A188
kp_B189
kp_C190
kp_D191
kp_E192
kp_F193
kp_XOR194
kp_Pow195
kp_Percent196
kp_LeftAngle197
kp_RightAngle198
kp_BitAnd199
kp_LogicAnd200
kp_BitOr201
kp_LogicOr202
kp_Colon203
kp_Hash204
kp_Space205
kp_At206
kp_Not207
kp_MemStore208
kp_MemRecall209
kp_MemClear210
kp_MemAdd211
kp_MemSubtract212
kp_MemMultiply213
kp_MemDivide214
kp_PlusMinus215
kp_Clear216
kp_ClearEntry217
kp_Binary218
kp_Octal219
kp_Decimal220
kp_Hexadecimal221
leftCtrl224
leftShift225
leftAlt226
leftSuper227
rightCtrl228
rightShift229
rightAlt230
rightSuper231
unknown255

Meta