Skip to content
CShift0.45

Key

Enum · namespace System.Graphics · Since 0.45

enum Key : int32

The keys that Input.Keys reports.

Value Number Description
None 0 No key.
Enter 1 Enter (also the one of the number pad).
Escape 2 Escape.
Backspace 3 Backspace.
Delete 4 Delete.
Tab 5 Tab (with Shift: Input.Shift).
Space 6 The space bar.
Insert 7 Insert.
Left 8 Arrow left.
Right 9 Arrow right.
Up 10 Arrow up.
Down 11 Arrow down.
Home 12 Home.
End 13 End.
PageUp 14 Page up.
PageDown 15 Page down.
A 16 The letter A.
B 17 The letter B.
C 18 The letter C.
D 19 The letter D.
E 20 The letter E.
F 21 The letter F.
G 22 The letter G.
H 23 The letter H.
I 24 The letter I.
J 25 The letter J.
K 26 The letter K.
L 27 The letter L.
M 28 The letter M.
N 29 The letter N.
O 30 The letter O.
P 31 The letter P.
Q 32 The letter Q.
R 33 The letter R.
S 34 The letter S.
T 35 The letter T.
U 36 The letter U.
V 37 The letter V.
W 38 The letter W.
X 39 The letter X.
Y 40 The letter Y.
Z 41 The letter Z.
D0 42 The digit 0 (of the main keyboard).
D1 43 The digit 1 (of the main keyboard).
D2 44 The digit 2 (of the main keyboard).
D3 45 The digit 3 (of the main keyboard).
D4 46 The digit 4 (of the main keyboard).
D5 47 The digit 5 (of the main keyboard).
D6 48 The digit 6 (of the main keyboard).
D7 49 The digit 7 (of the main keyboard).
D8 50 The digit 8 (of the main keyboard).
D9 51 The digit 9 (of the main keyboard).
F1 52 The function key F1.
F2 53 The function key F2.
F3 54 The function key F3.
F4 55 The function key F4.
F5 56 The function key F5.
F6 57 The function key F6.
F7 58 The function key F7.
F8 59 The function key F8.
F9 60 The function key F9.
F10 61 The function key F10.
F11 62 The function key F11.
F12 63 The function key F12.
Plus 64 Plus: the key of + (on a US keyboard the one of =, as browsers count it for zooming) and the one of the number pad.
Minus 65 Minus: the key of - and the one of the number pad.
Comma 66 The comma.
Period 67 The period.
NumPad0 68 The digit 0 of the number pad.
NumPad1 69 The digit 1 of the number pad.
NumPad2 70 The digit 2 of the number pad.
NumPad3 71 The digit 3 of the number pad.
NumPad4 72 The digit 4 of the number pad.
NumPad5 73 The digit 5 of the number pad.
NumPad6 74 The digit 6 of the number pad.
NumPad7 75 The digit 7 of the number pad.
NumPad8 76 The digit 8 of the number pad.
NumPad9 77 The digit 9 of the number pad.