Skip to main content

List of Keycodes

This is the reference page for keycodes used by behaviors. Use the table of contents (on the right or the top) for easy navigation.

warning

Take extra notice of the spelling of the keycodes, especially the shorthand spelling. Otherwise, it will result in an elusive parsing error!

Keyboard vs. Consumer keycodes

In the below tables, there are keycode pairs with similar names where one variant has a K_ prefix and another C_. These variants correspond to similarly named usages from different HID usage pages, namely the "keyboard/keypad" and "consumer" ones respectively.

In practice, some OS and applications might listen to only one of the variants. You can use the values in the compatibility columns below to assist you in selecting which one to use.

WWindows
LLinux
AAndroid
mmacOS
iiOS

Keyboard

Letters

NamesDescriptionWLAmi
A
a and A
B
b and B
C
c and C
D
d and D
E
e and E
F
f and F
G
g and G
H
h and H
I
i and I
J
j and J
K
k and K
L
l and L
M
m and M
N
n and N
O
o and O
P
p and P
Q
q and Q
R
r and R
S
s and S
T
t and T
U
u and U
V
v and V
W
w and W
X
x and X
Y
y and Y
Z
z and Z

Numbers

NamesDescriptionWLAmi
NUMBER_1
N1
1 and !Exclamation
NUMBER_2
N2
2 and @At Sign
NUMBER_3
N3
3 and #Hash / Pound
NUMBER_4
N4
4 and $Dollar
NUMBER_5
N5
5 and %Percent
NUMBER_6
N6
6 and ^Caret
NUMBER_7
N7
7 and &Ampersand
NUMBER_8
N8
8 and *Asterisk / Star
NUMBER_9
N9
9 and (Left Parenthesis
NUMBER_0
N0
0 and )Right Parenthesis

Symbols / Punctuation

NamesDescriptionWLAmi
EXCLAMATION
EXCL
!Exclamation