Class Keys
Keyboard key codes
public sealed class Keys : Enum
- Inheritance
-
Keys
Fields
A
A key.
public const Keys A = 65
Field Value
Add
Add key.
public const Keys Add = 107
Field Value
Apps
Applications key.
public const Keys Apps = 93
Field Value
B
B key.
public const Keys B = 66
Field Value
Back
BACKSPACE key.
public const Keys Back = 8
Field Value
Backslash
The OEM angle bracket or backslash key on the RT 102 key keyboard.
public const Keys Backslash = 226
Field Value
C
C key.
public const Keys C = 67
Field Value
CapsLock
CAPS LOCK key.
public const Keys CapsLock = 20
Field Value
CloseBrackets
The OEM close bracket key on a US standard keyboard.
public const Keys CloseBrackets = 221
Field Value
Comma
For any country/region, the ',' key.
public const Keys Comma = 188
Field Value
D
D key.
public const Keys D = 68
Field Value
D0
D0
public const Keys D0 = 48
Field Value
D1
Used for miscellaneous characters; it can vary by keyboard.
public const Keys D1 = 49
Field Value
D2
Used for miscellaneous characters; it can vary by keyboard.
public const Keys D2 = 50
Field Value
D3
Used for miscellaneous characters; it can vary by keyboard.
public const Keys D3 = 51
Field Value
D4
Used for miscellaneous characters; it can vary by keyboard.
public const Keys D4 = 52
Field Value
D5
Used for miscellaneous characters; it can vary by keyboard.
public const Keys D5 = 53
Field Value
D6
Used for miscellaneous characters; it can vary by keyboard.
public const Keys D6 = 54
Field Value
D7
Used for miscellaneous characters; it can vary by keyboard.
public const Keys D7 = 55
Field Value
D8
Used for miscellaneous characters; it can vary by keyboard.
public const Keys D8 = 56
Field Value
D9
Used for miscellaneous characters; it can vary by keyboard.
public const Keys D9 = 57
Field Value
Delete
DEL key.
public const Keys Delete = 46
Field Value
Divide
Divide key.
public const Keys Divide = 111
Field Value
Dot
Dot key.
public const Keys Dot = 110
Field Value
Down
DOWN ARROW key.
public const Keys Down = 40
Field Value
E
E key.
public const Keys E = 69
Field Value
End
END key.
public const Keys End = 35
Field Value
Enter
ENTER / Return key.
public const Keys Enter = 13
Field Value
Escape
ESC key.
public const Keys Escape = 27
Field Value
Execute
EXECUTE key.
public const Keys Execute = 43
Field Value
F
F key.
public const Keys F = 70
Field Value
F1
F1 key.
public const Keys F1 = 112
Field Value
F10
F10 key.
public const Keys F10 = 121
Field Value
F11
F11 key.
public const Keys F11 = 122
Field Value
F12
F12 key.
public const Keys F12 = 123
Field Value
F2
F2 key.
public const Keys F2 = 113
Field Value
F3
F3 key.
public const Keys F3 = 114
Field Value
F4
F4 key.
public const Keys F4 = 115
Field Value
F5
F5 key.
public const Keys F5 = 116
Field Value
F6
F6 key.
public const Keys F6 = 117
Field Value
F7
F7 key.
public const Keys F7 = 118
Field Value
F8
F8 key.
public const Keys F8 = 119
Field Value
F9
F9 key.
public const Keys F9 = 120
Field Value
G
G key.
public const Keys G = 71
Field Value
H
H key.
public const Keys H = 72
Field Value
Help
HELP key.
public const Keys Help = 47
Field Value
Home
HOME key.
public const Keys Home = 36
Field Value
I
I key.
public const Keys I = 73
Field Value
Insert
INS key.
public const Keys Insert = 45
Field Value
J
J key.
public const Keys J = 74
Field Value
K
K key.
public const Keys K = 75
Field Value
L
L key.
public const Keys L = 76
Field Value
Left
LEFT ARROW key.
public const Keys Left = 37
Field Value
LeftAlt
Left ALT key.
public const Keys LeftAlt = 164
Field Value
LeftControl
Left CONTROL key.
public const Keys LeftControl = 162
Field Value
LeftShift
F13 key.
public const Keys LeftShift = 160
Field Value
LeftWindows
Left Windows/Meta/Command key.
public const Keys LeftWindows = 91
Field Value
M
M key.
public const Keys M = 77
Field Value
Max
Last key entry
public const Keys Max = 227
Field Value
Multiply
Multiply key.
public const Keys Multiply = 106
Field Value
N
N key.
public const Keys N = 78
Field Value
None
Reserved.
public const Keys None = 0
Field Value
NumPad0
Numeric keypad 0 key.
public const Keys NumPad0 = 96
Field Value
NumPad1
Numeric keypad 1 key.
public const Keys NumPad1 = 97
Field Value
NumPad2
Numeric keypad 2 key.
public const Keys NumPad2 = 98
Field Value
NumPad3
Numeric keypad 3 key.
public const Keys NumPad3 = 99
Field Value
NumPad4
Numeric keypad 4 key.
public const Keys NumPad4 = 100
Field Value
NumPad5
Numeric keypad 5 key.
public const Keys NumPad5 = 101
Field Value
NumPad6
Numeric keypad 6 key.
public const Keys NumPad6 = 102
Field Value
NumPad7
Numeric keypad 7 key.
public const Keys NumPad7 = 103
Field Value
NumPad8
Numeric keypad 8 key.
public const Keys NumPad8 = 104
Field Value
NumPad9
Numeric keypad 9 key.
public const Keys NumPad9 = 105
Field Value
O
O key.
public const Keys O = 79
Field Value
OemMinus
For any country/region, the '-' key.
public const Keys OemMinus = 189
Field Value
OemPlus
For any country/region, the '+' key.
public const Keys OemPlus = 187
Field Value
OpenBrackets
The OEM open bracket key on a US standard keyboard.
public const Keys OpenBrackets = 219
Field Value
P
P key.
public const Keys P = 80
Field Value
PageDown
PAGE DOWN key.
public const Keys PageDown = 34
Field Value
PageUp
PAGE UP key.
public const Keys PageUp = 33
Field Value
Pause
PAUSE key.
public const Keys Pause = 19
Field Value
Period
For any country/region, the '.' key.
public const Keys Period = 190
Field Value
Pipe
The OEM pipe key on a US standard keyboard.
public const Keys Pipe = 220
Field Value
PRINT key.
public const Keys Print = 42
Field Value
PrintScreen
PRINT SCREEN key.
public const Keys PrintScreen = 44
Field Value
Q
Q key.
public const Keys Q = 81
Field Value
Question
The OEM question mark key on a US standard keyboard.
public const Keys Question = 191
Field Value
Quotes
The OEM singled/double quote key on a US standard keyboard.
public const Keys Quotes = 222
Field Value
R
R key.
public const Keys R = 82
Field Value
Right
RIGHT ARROW key.
public const Keys Right = 39
Field Value
RightAlt
Right ALT key.
public const Keys RightAlt = 165
Field Value
RightControl
Right CONTROL key.
public const Keys RightControl = 163
Field Value
RightShift
Right SHIFT key.
public const Keys RightShift = 161
Field Value
RightWindows
Right Windows/Meta/Command key.
public const Keys RightWindows = 92
Field Value
S
S key.
public const Keys S = 83
Field Value
Select
SELECT key.
public const Keys Select = 41
Field Value
Semicolon
The OEM Semicolon key on a US standard keyboard.
public const Keys Semicolon = 186
Field Value
Separator
Separator key.
public const Keys Separator = 108
Field Value
Sleep
Computer Sleep key.
public const Keys Sleep = 95
Field Value
Space
SPACE BAR key.
public const Keys Space = 32
Field Value
Subtract
Subtract key.
public const Keys Subtract = 109
Field Value
T
T key.
public const Keys T = 84
Field Value
Tab
TAB key.
public const Keys Tab = 9
Field Value
Tilde
The OEM tilde key on a US standard keyboard.
public const Keys Tilde = 192
Field Value
U
U key.
public const Keys U = 85
Field Value
Up
UP ARROW key.
public const Keys Up = 38
Field Value
V
V key.
public const Keys V = 86
Field Value
VolumeDown
Volume Down key.
public const Keys VolumeDown = 174
Field Value
VolumeMute
Volume Mute key.
public const Keys VolumeMute = 173
Field Value
VolumeUp
Volume Up key.
public const Keys VolumeUp = 175
Field Value
W
W key.
public const Keys W = 87
Field Value
X
X key.
public const Keys X = 88
Field Value
Y
Y key.
public const Keys Y = 89
Field Value
Z
Z key.
public const Keys Z = 90
Field Value
value__
public int value__