Key name values for win32¶
List of win32 key code names, with corresponding key code
values
- None
- Key value 0 (0x0)
- VK_ESCAPE
- Key value 1 (0x1)
- VK_1
- Key value 2 (0x2)
- VK_2
- Key value 3 (0x3)
- VK_3
- Key value 4 (0x4)
- VK_4
- Key value 5 (0x5)
- VK_5
- Key value 6 (0x6)
- VK_6
- Key value 7 (0x7)
- VK_7
- Key value 8 (0x8)
- VK_8
- Key value 9 (0x9)
- VK_9
- Key value 10 (0xa)
- VK_0
- Key value 11 (0xb)
- VK_OEM_MINUS
- Key value 12 (0xc)
- VK_OEM_PLUS
- Key value 13 (0xd)
- VK_BACK
- Key value 14 (0xe)
- VK_TAB
- Key value 15 (0xf)
- VK_Q
- Key value 16 (0x10)
- VK_W
- Key value 17 (0x11)
- VK_E
- Key value 18 (0x12)
- VK_R
- Key value 19 (0x13)
- VK_T
- Key value 20 (0x14)
- VK_Y
- Key value 21 (0x15)
- VK_U
- Key value 22 (0x16)
- VK_I
- Key value 23 (0x17)
- VK_O
- Key value 24 (0x18)
- VK_P
- Key value 25 (0x19)
- VK_OEM_4
- Key value 26 (0x1a)
- VK_OEM_6
- Key value 27 (0x1b)
- VK_RETURN
- Key value 28 (0x1c)
- VK_CONTROL
- Key value 29 (0x1d)
- VK_A
- Key value 30 (0x1e)
- VK_S
- Key value 31 (0x1f)
- VK_D
- Key value 32 (0x20)
- VK_F
- Key value 33 (0x21)
- VK_G
- Key value 34 (0x22)
- VK_H
- Key value 35 (0x23)
- VK_J
- Key value 36 (0x24)
- VK_K
- Key value 37 (0x25)
- VK_L
- Key value 38 (0x26)
- VK_OEM_1
- Key value 39 (0x27)
- VK_OEM_7
- Key value 40 (0x28)
- VK_OEM_3
- Key value 41 (0x29)
- VK_LSHIFT
- Key value 42 (0x2a)
- VK_OEM_5
- Key value 43 (0x2b)
- VK_Z
- Key value 44 (0x2c)
- VK_X
- Key value 45 (0x2d)
- VK_C
- Key value 46 (0x2e)
- VK_V
- Key value 47 (0x2f)
- VK_B
- Key value 48 (0x30)
- VK_N
- Key value 49 (0x31)
- VK_M
- Key value 50 (0x32)
- VK_OEM_COMMA
- Key value 51 (0x33)
- VK_OEM_PERIOD
- Key value 52 (0x34)
- VK_OEM_2
- Key value 53 (0x35)
- VK_RSHIFT
- Key value 54 (0x36)
- VK_MULTIPLY
- Key value 55 (0x37)
- Key value 56 (0x38)
- VK_SPACE
- Key value 57 (0x39)
- VK_CAPITAL
- Key value 58 (0x3a)
- VK_F1
- Key value 59 (0x3b)
- VK_F2
- Key value 60 (0x3c)
- VK_F3
- Key value 61 (0x3d)
- VK_F4
- Key value 62 (0x3e)
- VK_F5
- Key value 63 (0x3f)
- VK_F6
- Key value 64 (0x40)
- VK_F7
- Key value 65 (0x41)
- VK_F8
- Key value 66 (0x42)
- VK_F9
- Key value 67 (0x43)
- VK_F10
- Key value 68 (0x44)
- VK_NUMLOCK
- Key value 69 (0x45)
- VK_SCROLL
- Key value 70 (0x46)
- VK_NUMPAD7
- Key value 71 (0x47)
- VK_NUMPAD8
- Key value 72 (0x48)
- VK_NUMPAD9
- Key value 73 (0x49)
- VK_SUBTRACT
- Key value 74 (0x4a)
- VK_NUMPAD4
- Key value 75 (0x4b)
- VK_NUMPAD5
- Key value 76 (0x4c)
- VK_NUMPAD6
- Key value 77 (0x4d)
- VK_ADD
- Key value 78 (0x4e)
- VK_NUMPAD1
- Key value 79 (0x4f)
- VK_NUMPAD2
- Key value 80 (0x50)
- VK_NUMPAD3
- Key value 81 (0x51)
- VK_NUMPAD0
- Key value 82 (0x52)
- VK_DECIMAL
- Key value 83 (0x53)
- None
- Key value 84 (0x54)
- None
- Key value 85 (0x55)
- VK_OEM_102
- Key value 86 (0x56)
- VK_F11
- Key value 87 (0x57)
- VK_F12
- Key value 88 (0x58)
- None
- Key value 89 (0x59)
- VK_KANA
- Key value 90 (0x5a)
- None
- Key value 91 (0x5b)
- None
- Key value 92 (0x5c)
- None
- Key value 93 (0x5d)
- None
- Key value 94 (0x5e)
- None
- Key value 95 (0x5f)
- None
- Key value 96 (0x60)
- VK_RCONTROL
- Key value 97 (0x61)
- VK_DIVIDE
- Key value 98 (0x62)
- VK_SNAPSHOT
- Key value 99 (0x63)
- Key value 100 (0x64)
- None
- Key value 101 (0x65)
- VK_HOME
- Key value 102 (0x66)
- VK_UP
- Key value 103 (0x67)
- VK_PRIOR
- Key value 104 (0x68)
- VK_LEFT
- Key value 105 (0x69)
- VK_RIGHT
- Key value 106 (0x6a)
- VK_END
- Key value 107 (0x6b)
- VK_DOWN
- Key value 108 (0x6c)
- VK_NEXT
- Key value 109 (0x6d)
- VK_INSERT
- Key value 110 (0x6e)
- VK_DELETE
- Key value 111 (0x6f)
- None
- Key value 112 (0x70)
- VK_VOLUME_MUTE
- Key value 113 (0x71)
- VK_VOLUME_DOWN
- Key value 114 (0x72)
- VK_VOLUME_UP
- Key value 115 (0x73)
- None
- Key value 116 (0x74)
- None
- Key value 117 (0x75)
- None
- Key value 118 (0x76)
- VK_PAUSE
- Key value 119 (0x77)
- None
- Key value 120 (0x78)
- VK_SEPARATOR??
- Key value 121 (0x79)
- VK_HANGEUL
- Key value 122 (0x7a)
- VK_HANJA
- Key value 123 (0x7b)
- None
- Key value 124 (0x7c)
- VK_LWIN
- Key value 125 (0x7d)
- VK_RWIN
- Key value 126 (0x7e)
- VK_APPS
- Key value 127 (0x7f)
- VK_BROWSER_STOP
- Key value 128 (0x80)
- None
- Key value 129 (0x81)
- None
- Key value 130 (0x82)
- None
- Key value 131 (0x83)
- None
- Key value 132 (0x84)
- None
- Key value 133 (0x85)
- None
- Key value 134 (0x86)
- None
- Key value 135 (0x87)
- None
- Key value 136 (0x88)
- None
- Key value 137 (0x89)
- VK_HELP
- Key value 138 (0x8a)
- None
- Key value 139 (0x8b)
- None
- Key value 140 (0x8c)
- None
- Key value 141 (0x8d)
- VK_SLEEP
- Key value 142 (0x8e)
- None
- Key value 143 (0x8f)
- None
- Key value 144 (0x90)
- None
- Key value 145 (0x91)
- None
- Key value 146 (0x92)
- None
- Key value 147 (0x93)
- None
- Key value 148 (0x94)
- None
- Key value 149 (0x95)
- None
- Key value 150 (0x96)
- None
- Key value 151 (0x97)
- None
- Key value 152 (0x98)
- None
- Key value 153 (0x99)
- None
- Key value 154 (0x9a)
- None
- Key value 155 (0x9b)
- None
- Key value 156 (0x9c)
- None
- Key value 157 (0x9d)
- VK_BROWSER_BACK
- Key value 158 (0x9e)
- VK_BROWSER_FORWARD
- Key value 159 (0x9f)
- None
- Key value 160 (0xa0)
- None
- Key value 161 (0xa1)
- None
- Key value 162 (0xa2)
- VK_MEDIA_NEXT_TRACK
- Key value 163 (0xa3)
- VK_MEDIA_PLAY_PAUSE
- Key value 164 (0xa4)
- VK_MEDIA_PREV_TRACK
- Key value 165 (0xa5)
- VK_MEDIA_STOP
- Key value 166 (0xa6)
- None
- Key value 167 (0xa7)
- None
- Key value 168 (0xa8)
- None
- Key value 169 (0xa9)
- None
- Key value 170 (0xaa)
- None
- Key value 171 (0xab)
- VK_BROWSER_HOME
- Key value 172 (0xac)
- VK_BROWSER_REFRESH
- Key value 173 (0xad)
- None
- Key value 174 (0xae)
- None
- Key value 175 (0xaf)
- None
- Key value 176 (0xb0)
- None
- Key value 177 (0xb1)
- None
- Key value 178 (0xb2)
- None
- Key value 179 (0xb3)
- None
- Key value 180 (0xb4)
- None
- Key value 181 (0xb5)
- None
- Key value 182 (0xb6)
- VK_F13
- Key value 183 (0xb7)
- VK_F14
- Key value 184 (0xb8)
- VK_F15
- Key value 185 (0xb9)
- VK_F16
- Key value 186 (0xba)
- VK_F17
- Key value 187 (0xbb)
- VK_F18
- Key value 188 (0xbc)
- VK_F19
- Key value 189 (0xbd)
- VK_F20
- Key value 190 (0xbe)
- VK_F21
- Key value 191 (0xbf)
- VK_F22
- Key value 192 (0xc0)
- VK_F23
- Key value 193 (0xc1)
- VK_F24
- Key value 194 (0xc2)
- None
- Key value 195 (0xc3)
- None
- Key value 196 (0xc4)
- None
- Key value 197 (0xc5)
- None
- Key value 198 (0xc6)
- None
- Key value 199 (0xc7)
- None
- Key value 200 (0xc8)
- None
- Key value 201 (0xc9)
- None
- Key value 202 (0xca)
- None
- Key value 203 (0xcb)
- None
- Key value 204 (0xcc)
- None
- Key value 205 (0xcd)
- None
- Key value 206 (0xce)
- VK_PLAY
- Key value 207 (0xcf)
- None
- Key value 208 (0xd0)
- None
- Key value 209 (0xd1)
- VK_PRINT
- Key value 210 (0xd2)
- None
- Key value 211 (0xd3)
- None
- Key value 212 (0xd4)
- None
- Key value 213 (0xd5)
- None
- Key value 214 (0xd6)
- VK_LAUNCH_MAIL
- Key value 215 (0xd7)
- None
- Key value 216 (0xd8)
- VK_BROWSER_SEARCH
- Key value 217 (0xd9)
- None
- Key value 218 (0xda)
- None
- Key value 219 (0xdb)
- None
- Key value 220 (0xdc)
- None
- Key value 221 (0xdd)
- None
- Key value 222 (0xde)
- None
- Key value 223 (0xdf)
- None
- Key value 224 (0xe0)
- None
- Key value 225 (0xe1)
- None
- Key value 226 (0xe2)
- None
- Key value 227 (0xe3)
- None
- Key value 228 (0xe4)
- None
- Key value 229 (0xe5)
- None
- Key value 230 (0xe6)
- None
- Key value 231 (0xe7)
- None
- Key value 232 (0xe8)
- None
- Key value 233 (0xe9)
- None
- Key value 234 (0xea)
- None
- Key value 235 (0xeb)
- None
- Key value 236 (0xec)
- None
- Key value 237 (0xed)
- None
- Key value 238 (0xee)
- None
- Key value 239 (0xef)
- None
- Key value 240 (0xf0)
- None
- Key value 241 (0xf1)
- None
- Key value 242 (0xf2)
- None
- Key value 243 (0xf3)
- None
- Key value 244 (0xf4)
- None
- Key value 245 (0xf5)
- None
- Key value 246 (0xf6)
- None
- Key value 247 (0xf7)
- None
- Key value 248 (0xf8)
- None
- Key value 249 (0xf9)
- None
- Key value 250 (0xfa)
- None
- Key value 251 (0xfb)
- None
- Key value 252 (0xfc)
- None
- Key value 253 (0xfd)
- None
- Key value 254 (0xfe)
- None
- Key value 255 (0xff)
- VK_LBUTTON
- Key value 256 (0x100)
- VK_RBUTTON
- Key value 257 (0x101)
- VK_MBUTTON
- Key value 258 (0x102)
- VK_XBUTTON1
- Key value 259 (0x103)
- VK_XBUTTON2
- Key value 260 (0x104)
- None
- Key value 261 (0x105)
- None
- Key value 262 (0x106)
- None
- Key value 263 (0x107)
- None
- Key value 264 (0x108)
- None
- Key value 265 (0x109)
- None
- Key value 272 (0x110)
- None
- Key value 273 (0x111)
- None
- Key value 274 (0x112)
- None
- Key value 275 (0x113)
- None
- Key value 276 (0x114)
- None
- Key value 277 (0x115)
- None
- Key value 278 (0x116)
- None
- Key value 279 (0x117)
- None
- Key value 288 (0x120)
- None
- Key value 289 (0x121)
- None
- Key value 290 (0x122)
- None
- Key value 291 (0x123)
- None
- Key value 292 (0x124)
- None
- Key value 293 (0x125)
- None
- Key value 294 (0x126)
- None
- Key value 295 (0x127)
- None
- Key value 296 (0x128)
- None
- Key value 297 (0x129)
- None
- Key value 298 (0x12a)
- None
- Key value 299 (0x12b)
- None
- Key value 303 (0x12f)
- None
- Key value 304 (0x130)
- None
- Key value 305 (0x131)
- None
- Key value 306 (0x132)
- None
- Key value 307 (0x133)
- None
- Key value 308 (0x134)
- None
- Key value 309 (0x135)
- None
- Key value 310 (0x136)
- None
- Key value 311 (0x137)
- None
- Key value 312 (0x138)
- None
- Key value 313 (0x139)
- None
- Key value 314 (0x13a)
- None
- Key value 315 (0x13b)
- None
- Key value 316 (0x13c)
- None
- Key value 317 (0x13d)
- None
- Key value 318 (0x13e)
- None
- Key value 320 (0x140)
- None
- Key value 321 (0x141)
- None
- Key value 322 (0x142)
- None
- Key value 323 (0x143)
- None
- Key value 324 (0x144)
- None
- Key value 325 (0x145)
- None
- Key value 326 (0x146)
- None
- Key value 327 (0x147)
- None
- Key value 330 (0x14a)
- None
- Key value 331 (0x14b)
- None
- Key value 332 (0x14c)
- None
- Key value 333 (0x14d)
- None
- Key value 334 (0x14e)
- None
- Key value 335 (0x14f)
- None
- Key value 336 (0x150)
- None
- Key value 337 (0x151)
- None
- Key value 352 (0x160)
- VK_SELECT
- Key value 353 (0x161)
- None
- Key value 354 (0x162)
- None
- Key value 355 (0x163)
- None
- Key value 356 (0x164)
- None
- Key value 357 (0x165)
- None
- Key value 358 (0x166)
- None
- Key value 359 (0x167)
- None
- Key value 360 (0x168)
- None
- Key value 361 (0x169)
- None
- Key value 362 (0x16a)
- None
- Key value 363 (0x16b)
- VK_BROWSER_FAVOURITES
- Key value 364 (0x16c)
- None
- Key value 365 (0x16d)
- None
- Key value 366 (0x16e)
- None
- Key value 367 (0x16f)
- None
- Key value 368 (0x170)
- None
- Key value 369 (0x171)
- None
- Key value 370 (0x172)
- None
- Key value 371 (0x173)
- VK_ZOOM
- Key value 372 (0x174)
- None
- Key value 373 (0x175)
- None
- Key value 374 (0x176)
- None
- Key value 375 (0x177)
- None
- Key value 376 (0x178)
- None
- Key value 377 (0x179)
- None
- Key value 378 (0x17a)
- None
- Key value 379 (0x17b)
- None
- Key value 380 (0x17c)
- None
- Key value 381 (0x17d)
- None
- Key value 382 (0x17e)
- None
- Key value 383 (0x17f)
- None
- Key value 384 (0x180)
- None
- Key value 385 (0x181)
- None
- Key value 386 (0x182)
- None
- Key value 387 (0x183)
- None
- Key value 388 (0x184)
- None
- Key value 389 (0x185)
- None
- Key value 390 (0x186)
- None
- Key value 391 (0x187)
- None
- Key value 392 (0x188)
- None
- Key value 393 (0x189)
- None
- Key value 394 (0x18a)
- None
- Key value 395 (0x18b)
- None
- Key value 396 (0x18c)
- None
- Key value 397 (0x18d)
- None
- Key value 398 (0x18e)
- None
- Key value 399 (0x18f)
- None
- Key value 400 (0x190)
- None
- Key value 401 (0x191)
- None
- Key value 402 (0x192)
- None
- Key value 403 (0x193)
- None
- Key value 404 (0x194)
- None
- Key value 405 (0x195)
- None
- Key value 406 (0x196)
- None
- Key value 407 (0x197)
- None
- Key value 408 (0x198)
- None
- Key value 409 (0x199)
- None
- Key value 410 (0x19a)
- None
- Key value 411 (0x19b)
- None
- Key value 412 (0x19c)
- None
- Key value 413 (0x19d)
- None
- Key value 414 (0x19e)
- None
- Key value 415 (0x19f)
- None
- Key value 416 (0x1a0)
- None
- Key value 417 (0x1a1)
- None
- Key value 418 (0x1a2)
- None
- Key value 419 (0x1a3)
- None
- Key value 420 (0x1a4)
- None
- Key value 421 (0x1a5)
- None
- Key value 422 (0x1a6)
- None
- Key value 423 (0x1a7)
- None
- Key value 424 (0x1a8)
- None
- Key value 425 (0x1a9)
- None
- Key value 426 (0x1aa)
- None
- Key value 427 (0x1ab)
- None
- Key value 428 (0x1ac)
- None
- Key value 429 (0x1ad)
- None
- Key value 430 (0x1ae)
- None
- Key value 431 (0x1af)
- None
- Key value 432 (0x1b0)
- None
- Key value 433 (0x1b1)
- None
- Key value 434 (0x1b2)
- None
- Key value 435 (0x1b3)
- None
- Key value 436 (0x1b4)
- None
- Key value 437 (0x1b5)
- None
- Key value 438 (0x1b6)
- None
- Key value 439 (0x1b7)
- None
- Key value 448 (0x1c0)
- None
- Key value 449 (0x1c1)
- None
- Key value 450 (0x1c2)
- None
- Key value 451 (0x1c3)
- None
- Key value 464 (0x1d0)
- None
- Key value 465 (0x1d1)
- None
- Key value 466 (0x1d2)
- None
- Key value 467 (0x1d3)
- None
- Key value 468 (0x1d4)
- None
- Key value 469 (0x1d5)
- None
- Key value 470 (0x1d6)
- None
- Key value 471 (0x1d7)
- None
- Key value 472 (0x1d8)
- None
- Key value 473 (0x1d9)
- None
- Key value 474 (0x1da)
- None
- Key value 475 (0x1db)
- None
- Key value 476 (0x1dc)
- None
- Key value 477 (0x1dd)
- None
- Key value 478 (0x1de)
- None
- Key value 479 (0x1df)
- None
- Key value 480 (0x1e0)
- None
- Key value 481 (0x1e1)
- None
- Key value 482 (0x1e2)
- None
- Key value 483 (0x1e3)
- None
- Key value 484 (0x1e4)
- None
- Key value 497 (0x1f1)
- None
- Key value 498 (0x1f2)
- None
- Key value 499 (0x1f3)
- None
- Key value 500 (0x1f4)
- None
- Key value 501 (0x1f5)
- None
- Key value 502 (0x1f6)
- None
- Key value 503 (0x1f7)
- None
- Key value 504 (0x1f8)
- None
- Key value 505 (0x1f9)
- None
- Key value 506 (0x1fa)
- None
- Key value 512 (0x200)
- None
- Key value 513 (0x201)
- None
- Key value 514 (0x202)
- None
- Key value 515 (0x203)
- None
- Key value 516 (0x204)
- None
- Key value 517 (0x205)
- None
- Key value 518 (0x206)
- None
- Key value 519 (0x207)
- None
- Key value 520 (0x208)
- None
- Key value 521 (0x209)
- None
- Key value 522 (0x20a)
- None
- Key value 523 (0x20b)
- None
- Key value 524 (0x20c)