Virtual Key Definitions

The PC VKEY set is shown in the following table:

┌───────────────┬───────────────────────┬─────────────────────────┐
│Symbol         │Personal Computer AT   │Enhanced Keyboard        │
│               │Keyboard               │                         │
├───────────────┼───────────────────────┼─────────────────────────┤
│VK_BUTTON1     │These values are only  │These values are only    │
│VK_BUTTON2     │used to access the     │used to access the       │
│VK_BUTTON3     │up/down and toggled    │up/down and toggled      │
│               │states of the pointing │states of the pointing   │
│               │device buttons; they   │device buttons; they     │
│               │never actually appear  │never actually appear in │
│               │in a WM_CHAR message.  │a WM_CHAR message.       │
├───────────────┼───────────────────────┼─────────────────────────┤
│VK_BREAK       │Ctrl + Scroll Lock     │Ctrl + Pause             │
├───────────────┼───────────────────────┼─────────────────────────┤
│VK_BACKSPACE   │Backspace              │Backspace                │
├───────────────┼───────────────────────┼─────────────────────────┤
│VK_TAB         │Tab                    │Tab                      │
├───────────────┼───────────────────────┼─────────────────────────┤
│VK_BACKTAB     │Shift + Tab            │Shift + Tab              │
├───────────────┼───────────────────────┼─────────────────────────┤
│VK_NEWLINE     │Enter                  │Enter                    │
├───────────────┼───────────────────────┼─────────────────────────┤
│VK_SHIFT  *    │Left and Right Shift   │Left and Right Shift     │
├───────────────┼───────────────────────┼─────────────────────────┤
│VK_CTRL  *     │Ctrl                   │Left and Right Ctrl      │
├───────────────┼───────────────────────┼─────────────────────────┤
│VK_ALT  *      │Alt                    │Left and Right Alt       │
├───────────────┼───────────────────────┼─────────────────────────┤
│VK_ALTGRAF  *  │None                   │Alt Graf (if available)  │
├───────────────┼───────────────────────┼─────────────────────────┤
│VK_PAUSE       │Ctrl + Num Lock        │Pause                    │
├───────────────┼───────────────────────┼─────────────────────────┤
│VK_CAPSLOCK    │Caps Lock              │Caps Lock                │
├───────────────┼───────────────────────┼─────────────────────────┤
│VK_ESC         │Esc                    │Esc                      │
├───────────────┼───────────────────────┼─────────────────────────┤
│VK_SPACE  *    │Space                  │Space                    │
├───────────────┼───────────────────────┼─────────────────────────┤
│VK_PAGEUP  *   │Numpad 9               │Pg Up and Numpad 9       │
├───────────────┼───────────────────────┼─────────────────────────┤
│VK_PAGEDOWN  * │Numpad 3               │Pg Dn and Numpad 3       │
├───────────────┼───────────────────────┼─────────────────────────┤
│VK_END  *      │Numpad 1               │End and Numpad 1         │
├───────────────┼───────────────────────┼─────────────────────────┤
│VK_HOME  *     │Numpad 7               │Home and Numpad 7        │
├───────────────┼───────────────────────┼─────────────────────────┤
│VK_LEFT  *     │Numpad 4               │Left and Numpad 4        │
├───────────────┼───────────────────────┼─────────────────────────┤
│VK_UP  *       │Numpad 8               │Up and Numpad 8          │
├───────────────┼───────────────────────┼─────────────────────────┤
│VK_RIGHT  *    │Numpad 6               │Right and Numpad 6       │
├───────────────┼───────────────────────┼─────────────────────────┤
│VK_DOWN  *     │Numpad 2               │Down and Numpad 2        │
├───────────────┼───────────────────────┼─────────────────────────┤
│VK_PRINTSCRN   │Shift + Print Screen   │Print Screen             │
├───────────────┼───────────────────────┼─────────────────────────┤
│VK_INSERT  *   │Numpad 0               │Ins and Numpad 0         │
├───────────────┼───────────────────────┼─────────────────────────┤
│VK_DELETE  *   │Numpad                 │Del and Numpad           │
├───────────────┼───────────────────────┼─────────────────────────┤
│VK_SCRLLOCK    │Scroll Lock            │Scroll Lock              │
├───────────────┼───────────────────────┼─────────────────────────┤
│VK_NUMLOCK     │Num Lock               │Num Lock                 │
├───────────────┼───────────────────────┼─────────────────────────┤
│VK_ENTER       │Shift + Enter          │Shift + Enter and Numpad │
│               │                       │Enter                    │
├───────────────┼───────────────────────┼─────────────────────────┤
│VK_SYSRQ       │SysRq                  │Alt + Print Screen       │
├───────────────┼───────────────────────┼─────────────────────────┤
│VK_F1  *       │F1                     │F1                       │
├───────────────┼───────────────────────┼─────────────────────────┤
│VK_F2  *       │F2                     │F2                       │
├───────────────┼───────────────────────┼─────────────────────────┤
│VK_F3  *       │F3                     │F3                       │
├───────────────┼───────────────────────┼─────────────────────────┤
│VK_F4  *       │F4                     │F4                       │
├───────────────┼───────────────────────┼─────────────────────────┤
│VK_F5  *       │F5                     │F5                       │
├───────────────┼───────────────────────┼─────────────────────────┤
│VK_F6  *       │F6                     │F6                       │
├───────────────┼───────────────────────┼─────────────────────────┤
│VK_F7  *       │F7                     │F7                       │
├───────────────┼───────────────────────┼─────────────────────────┤
│VK_F8  *       │F8                     │F8                       │
├───────────────┼───────────────────────┼─────────────────────────┤
│VK_F9  *       │F9                     │F9                       │
├───────────────┼───────────────────────┼─────────────────────────┤
│VK_F10  *      │F10                    │F10                      │
├───────────────┼───────────────────────┼─────────────────────────┤
│VK_F11  *      │None                   │F11                      │
├───────────────┼───────────────────────┼─────────────────────────┤
│VK_F12  *      │None                   │F12                      │
├───────────────┼───────────────────────┼─────────────────────────┤
│VK_F13         │None                   │None                     │
├───────────────┼───────────────────────┼─────────────────────────┤
│VK_F14         │None                   │None                     │
├───────────────┼───────────────────────┼─────────────────────────┤
│VK_F15         │None                   │None                     │
├───────────────┼───────────────────────┼─────────────────────────┤
│VK_F16         │None                   │None                     │
├───────────────┼───────────────────────┼─────────────────────────┤
│VK_F17         │None                   │None                     │
├───────────────┼───────────────────────┼─────────────────────────┤
│VK_F18         │None                   │None                     │
├───────────────┼───────────────────────┼─────────────────────────┤
│VK_F19         │None                   │None                     │
├───────────────┼───────────────────────┼─────────────────────────┤
│VK_F20         │None                   │None                     │
├───────────────┼───────────────────────┼─────────────────────────┤
│VK_F21         │None                   │None                     │
├───────────────┼───────────────────────┼─────────────────────────┤
│VK_F22         │None                   │None                     │
├───────────────┼───────────────────────┼─────────────────────────┤
│VK_F23         │None                   │None                     │
├───────────────┼───────────────────────┼─────────────────────────┤
│VK_F24         │None                   │None                     │
├───────────────┼───────────────────────┼─────────────────────────┤
│VK_MENU  *     │F10                    │F10                      │
└───────────────┴───────────────────────┴─────────────────────────┘

Notes


[Back: Resource (.RES) File Specification]
[Next: Notices]