Table of Contents

Enum VIRTUAL_KEY

Namespace
Windows.Win32.UI.Input.KeyboardAndMouse
Assembly
Whim.dll
Symbolic constant names and virtual-key codes used by the system.
public enum VIRTUAL_KEY : ushort
Extension Methods

Fields

None = 0
A non-existent virtual-key.
VK_0 = 48
0 key
VK_1 = 49
1 key
VK_2 = 50
2 key
VK_3 = 51
3 key
VK_4 = 52
4 key
VK_5 = 53
5 key
VK_6 = 54
6 key
VK_7 = 55
7 key
VK_8 = 56
8 key
VK_9 = 57
9 key
VK_A = 65
A key
VK_ACCEPT = 30
IME accept
VK_ADD = 107
Add key
VK_APPS = 93
Applications key (Natural keyboard)
VK_ATTN = 246
Attn key
VK_B = 66
B key
VK_BACK = 8
BACKSPACE key
VK_BROWSER_BACK = 166
Browser Back key
VK_BROWSER_FAVORITES = 171
Browser Favorites key
VK_BROWSER_FORWARD = 167
Browser Forward key
VK_BROWSER_HOME = 172
Browser Start and Home key
VK_BROWSER_REFRESH = 168
Browser Refresh key
Browser Search key
VK_BROWSER_STOP = 169
Browser Stop key
VK_C = 67
C key
VK_CANCEL = 3
Control-break processing
VK_CAPITAL = 20
CAPS LOCK key
VK_CLEAR = 12
CLEAR key
VK_CONTROL = 17
CTRL key
VK_CONVERT = 28
IME convert
VK_CRSEL = 247
CrSel key
VK_D = 68
D key
VK_DECIMAL = 110
Decimal key
VK_DELETE = 46
DEL key
VK_DIVIDE = 111
Divide key
VK_DOWN = 40
DOWN ARROW key
VK_E = 69
E key
VK_END = 35
END key
VK_EREOF = 249
Erase EOF key
VK_ESCAPE = 27
ESC key
VK_EXECUTE = 43
EXECUTE key
VK_EXSEL = 248
ExSel key
VK_F = 70
F key
VK_F1 = 112
F1 key
VK_F10 = 121
F10 key
VK_F11 = 122
F11 key
VK_F12 = 123
F12 key
VK_F13 = 124
F13 key
VK_F14 = 125
F14 key
VK_F15 = 126
F15 key
VK_F16 = 127
F16 key
VK_F17 = 128
F17 key
VK_F18 = 129
F18 key
VK_F19 = 130
F19 key
VK_F2 = 113
F2 key
VK_F20 = 131
F20 key
VK_F21 = 132
F21 key
VK_F22 = 133
F22 key
VK_F23 = 134
F23 key
VK_F24 = 135
F24 key
VK_F3 = 114
F3 key
VK_F4 = 115
F4 key
VK_F5 = 116
F5 key
VK_F6 = 117
F6 key
VK_F7 = 118
F7 key
VK_F8 = 119
F8 key
VK_F9 = 120
F9 key
VK_FINAL = 24
IME final mode
VK_G = 71
G key
VK_GAMEPAD_A = 195
VK_GAMEPAD_B = 196
VK_GAMEPAD_DPAD_DOWN = 204
VK_GAMEPAD_DPAD_LEFT = 205
VK_GAMEPAD_DPAD_RIGHT = 206
VK_GAMEPAD_DPAD_UP = 203
VK_GAMEPAD_LEFT_SHOULDER = 200
VK_GAMEPAD_LEFT_THUMBSTICK_BUTTON = 209
VK_GAMEPAD_LEFT_THUMBSTICK_DOWN = 212
VK_GAMEPAD_LEFT_THUMBSTICK_LEFT = 214
VK_GAMEPAD_LEFT_THUMBSTICK_RIGHT = 213
VK_GAMEPAD_LEFT_THUMBSTICK_UP = 211
VK_GAMEPAD_LEFT_TRIGGER = 201
VK_GAMEPAD_MENU = 207
VK_GAMEPAD_RIGHT_SHOULDER = 199
VK_GAMEPAD_RIGHT_THUMBSTICK_BUTTON = 210
VK_GAMEPAD_RIGHT_THUMBSTICK_DOWN = 216
VK_GAMEPAD_RIGHT_THUMBSTICK_LEFT = 218
VK_GAMEPAD_RIGHT_THUMBSTICK_RIGHT = 217
VK_GAMEPAD_RIGHT_THUMBSTICK_UP = 215
VK_GAMEPAD_RIGHT_TRIGGER = 202
VK_GAMEPAD_VIEW = 208
VK_GAMEPAD_X = 197
VK_GAMEPAD_Y = 198
VK_H = 72
H key
VK_HANGEUL = 21
IME Hanguel mode (maintained for compatibility; use VK_HANGUL)
VK_HANGUL = 21
IME Hangul mode
VK_HANJA = 25
IME Hanja mode
VK_HELP = 47
HELP key
VK_HOME = 36
HOME key
VK_I = 73
I key
VK_ICO_00 = 228
VK_ICO_CLEAR = 230
VK_ICO_HELP = 227
VK_IME_OFF = 26
IME Off
VK_IME_ON = 22
IME On
VK_INSERT = 45
INS key
VK_J = 74
J key
VK_JUNJA = 23
IME Junja mode
VK_K = 75
K key
VK_KANA = 21
IME Kana mode
VK_KANJI = 25
IME Kanji mode
VK_L = 76
L key
VK_LAUNCH_APP1 = 182
Start Application 1 key
VK_LAUNCH_APP2 = 183
Start Application 2 key
VK_LAUNCH_MAIL = 180
Start Mail key
VK_LAUNCH_MEDIA_SELECT = 181
Select Media key
VK_LBUTTON = 1
Left mouse button
VK_LCONTROL = 162
Left CONTROL key
VK_LEFT = 37
LEFT ARROW key
VK_LMENU = 164
Left ALT key
VK_LSHIFT = 160
Left SHIFT key
VK_LWIN = 91
Left Windows key (Natural keyboard)
VK_M = 77
M key
VK_MBUTTON = 4
Middle mouse button (three-button mouse)
VK_MEDIA_NEXT_TRACK = 176
Next Track key
VK_MEDIA_PLAY_PAUSE = 179
Play/Pause Media key
VK_MEDIA_PREV_TRACK = 177
Previous Track key
VK_MEDIA_STOP = 178
Stop Media key
VK_MENU = 18
ALT key
VK_MODECHANGE = 31
IME mode change request
VK_MULTIPLY = 106
Multiply key
VK_N = 78
N key
VK_NAVIGATION_ACCEPT = 142
VK_NAVIGATION_CANCEL = 143
VK_NAVIGATION_DOWN = 139
VK_NAVIGATION_LEFT = 140
VK_NAVIGATION_MENU = 137
VK_NAVIGATION_RIGHT = 141
VK_NAVIGATION_UP = 138
VK_NAVIGATION_VIEW = 136
VK_NEXT = 34
PAGE DOWN key
VK_NONAME = 252
Reserved
VK_NONCONVERT = 29
IME nonconvert
VK_NUMLOCK = 144
NUM LOCK key
VK_NUMPAD0 = 96
Numeric keypad 0 key
VK_NUMPAD1 = 97
Numeric keypad 1 key
VK_NUMPAD2 = 98
Numeric keypad 2 key
VK_NUMPAD3 = 99
Numeric keypad 3 key
VK_NUMPAD4 = 100
Numeric keypad 4 key
VK_NUMPAD5 = 101
Numeric keypad 5 key
VK_NUMPAD6 = 102
Numeric keypad 6 key
VK_NUMPAD7 = 103
Numeric keypad 7 key
VK_NUMPAD8 = 104
Numeric keypad 8 key
VK_NUMPAD9 = 105
Numeric keypad 9 key
VK_O = 79
O key
VK_OEM_1 = 186
VK_OEM_102 = 226
VK_OEM_2 = 191
VK_OEM_3 = 192
VK_OEM_4 = 219
VK_OEM_5 = 220
VK_OEM_6 = 221
VK_OEM_7 = 222
VK_OEM_8 = 223
VK_OEM_ATTN = 240
VK_OEM_AUTO = 243
VK_OEM_AX = 225
VK_OEM_BACKTAB = 245
VK_OEM_CLEAR = 254
Clear key
VK_OEM_COMMA = 188
VK_OEM_COPY = 242
VK_OEM_CUSEL = 239
VK_OEM_ENLW = 244
VK_OEM_FINISH = 241
VK_OEM_FJ_JISHO = 146
VK_OEM_FJ_LOYA = 149
VK_OEM_FJ_MASSHOU = 147
VK_OEM_FJ_ROYA = 150
VK_OEM_FJ_TOUROKU = 148
VK_OEM_JUMP = 234
VK_OEM_MINUS = 189
VK_OEM_NEC_EQUAL = 146
VK_OEM_PA1 = 235
VK_OEM_PA2 = 236
VK_OEM_PA3 = 237
VK_OEM_PERIOD = 190
VK_OEM_PLUS = 187
VK_OEM_RESET = 233
VK_OEM_WSCTRL = 238
VK_P = 80
P key
VK_PA1 = 253
PA1 key
VK_PACKET = 231
VK_PAUSE = 19
PAUSE key
VK_PLAY = 250
Play key
VK_PRINT = 42
PRINT key
VK_PRIOR = 33
PAGE UP key
VK_PROCESSKEY = 229
VK_Q = 81
Q key
VK_R = 82
R key
VK_RBUTTON = 2
Right mouse button
VK_RCONTROL = 163
Right CONTROL key
VK_RETURN = 13
ENTER key
VK_RIGHT = 39
RIGHT ARROW key
VK_RMENU = 165
Right ALT key
VK_RSHIFT = 161
Right SHIFT key
VK_RWIN = 92
Right Windows key (Natural keyboard)
VK_S = 83
S key
VK_SCROLL = 145
SCROLL LOCK key
VK_SELECT = 41
SELECT key
VK_SEPARATOR = 108
Separator key
VK_SHIFT = 16
SHIFT key
VK_SLEEP = 95
Computer Sleep key
VK_SNAPSHOT = 44
PRINT SCREEN key
VK_SPACE = 32
SPACEBAR
VK_SUBTRACT = 109
Subtract key
VK_T = 84
T key
VK_TAB = 9
TAB key
VK_U = 85
U key
VK_UP = 38
UP ARROW key
VK_V = 86
V key
VK_VOLUME_DOWN = 174
Volume Down key
VK_VOLUME_MUTE = 173
Volume Mute key
VK_VOLUME_UP = 175
Volume Up key
VK_W = 87
W key
VK_X = 88
X key
VK_XBUTTON1 = 5
X1 mouse button
VK_XBUTTON2 = 6
X2 mouse button
VK_Y = 89
Y key
VK_Z = 90
Z key
VK_ZOOM = 251
Zoom key