The following table shows the symbolic constant names, hexadecimal values, and mouse or keyboard equivalents for the virtual-key codes used by the system. The codes are listed in numeric order.
Constant/value
Description
VK_LBUTTON 0x01
Left mouse button
VK_RBUTTON 0x02
Right mouse button
VK_CANCEL 0x03
Control-break processing
VK_MBUTTON 0x04
Middle mouse button (three-button mouse)
VK_XBUTTON1 0x05
X1 mouse button
VK_XBUTTON2 0x06
X2 mouse button
- 0x07
Undefined
VK_BACK 0x08
BACKSPACE key
VK_TAB 0x09
TAB key
- 0x0A-0B
Reserved
VK_CLEAR 0x0C
CLEAR key
VK_RETURN 0x0D
ENTER key
- 0x0E-0F
Undefined
VK_SHIFT 0x10
SHIFT key
VK_CONTROL 0x11
CTRL key
VK_MENU 0x12
ALT key
VK_PAUSE 0x13
PAUSE key
VK_CAPITAL 0x14
CAPS LOCK key
VK_KANA 0x15
IME Kana mode
VK_HANGUEL 0x15
IME Hanguel mode (maintained for compatibility; use VK_HANGUL)