Virtual key names and hexadecimal key codes
| Virtual Key Name |
|
| Key Code (Hex) |
|
| Description |
|
|
|
|
|
|
| |||
|
|
|
|
|
|
|
|
|
VK_0 – VK_9 |
|
|
| Keys |
| |||
|
|
|
|
|
|
|
| |
VK_A – VK_Z |
|
|
|
| Keys |
| ||
|
|
|
|
|
|
| ||
VK_NUMPAD0 – VK_NUMPAD9 |
|
|
| Keys |
| |||
|
|
|
|
|
|
| ||
VK_F1 ... VK_F24 |
|
|
| Function keys |
| |||
|
|
|
|
|
|
| ||
VK_LBUTTON |
| 01 |
|
| Left mouse button |
| ||
|
|
|
|
|
|
| ||
VK_RBUTTON |
| 02 |
|
| Right mouse button |
| ||
|
|
|
|
|
|
| ||
VK_CANCEL |
| 03 |
|
|
| |||
|
|
|
|
|
|
| ||
VK_MBUTTON |
| 04 |
|
| Middle mouse button |
| ||
|
|
|
|
|
|
| mouse) |
|
|
|
|
|
|
|
| ||
VK_BACK |
| 08 |
|
| BACKSPACE key |
| ||
|
|
|
|
|
|
|
| |
VK_CLEAR |
|
| 0C |
|
| CLEAR key |
| |
|
|
|
|
|
|
|
| |
VK_RETURN |
|
| 0D |
|
| ENTER key |
| |
|
|
|
|
|
|
| ||
VK_PAUSE |
| 13 |
|
| PAUSE key |
| ||
|
|
|
|
|
|
| ||
VK_CAPITAL |
| 14 |
|
| CAPS LOCK key |
| ||
|
|
|
|
|
|
| ||
VK_PRIOR |
| 21 |
|
| PAGE UP key |
| ||
|
|
|
|
|
|
| ||
VK_NEXT |
| 22 |
|
| PAGE DOWN key |
| ||
|
|
|
|
|
|
| ||
VK_END |
| 23 |
|
| END key |
| ||
|
|
|
|
|
|
| ||
VK_HOME |
| 24 |
|
| HOME key |
| ||
|
|
|
|
|
|
| ||
VK_LEFT |
| 25 |
|
| LEFT ARROW key |
| ||
|
|
|
|
|
|
| ||
VK_UP |
| 26 |
|
| UP ARROW key |
| ||
|
|
|
|
|
|
| ||
VK_RIGHT |
| 27 |
|
| RIGHT ARROW key |
| ||
|
|
|
|
|
|
| ||
VK_DOWN |
| 28 |
|
| DOWN ARROW key |
| ||
|
|
|
|
|
|
| ||
VK_SELECT |
| 29 |
|
| SELECT key |
| ||
|
|
|
|
|
|
|
| |
VK_EXECUTE |
|
| 2B |
|
| EXECUTE key |
| |
|
|
|
|
|
|
|
| |
VK_SNAPSHOT |
|
| 2C |
|
| PRINT SCREEN key |
| |
|
|
|
|
|
|
|
| |
VK_INSERT |
|
| 2D |
|
| INS key |
| |
|
|
|
|
|
|
|
| |
VK_DELETE |
|
| 2E |
|
| DEL key |
| |
|
|
|
|
|
|
|
|
|
48