VirtualKey
VirtualKey
VirtualKey
VirtualKey
Enum
Definition
Specifies the values for each virtual key.
The keys listed below are virtual, which means that they are not the physical keys or buttons on an attached keyboard or device, but an abstract mapping of those keys that may be connected to hardware that provides either those keys and buttons or an interface that simulates their physical behavior (such as an onscreen touch keyboard).
public : enum class VirtualKeypublic enum VirtualKeyPublic Enum VirtualKey// You can use this enum in JavaScript.
- Attributes
| Device family |
Windows 10 (introduced v10.0.10240.0)
|
| API contract |
Windows.Foundation.UniversalApiContract (introduced v1)
|
Fields
| A A A A | The letter "A" key. |
| Accept Accept Accept Accept | The accept button or key. |
| Add Add Add Add | The add (+) operation key as located on a numeric pad. |
| Application Application Application Application | The application key or button. |
| B B B B | The letter "B" key. |
| Back Back Back Back | The virtual back key or button. |
| C C C C | The letter "C" key. |
| Cancel Cancel Cancel Cancel | The cancel key or button . |
| CapitalLock CapitalLock CapitalLock CapitalLock | The Caps Lock key or button. |
| Clear Clear Clear Clear | The Clear key or button. |
| Control Control Control Control | The Ctrl key. This is the general Ctrl case, applicable to key layouts with only one Ctrl key or that do not need to differentiate between left Ctrl and right Ctrl keystrokes. |
| Convert Convert Convert Convert | The convert button or key. |
| D D D D | The letter "D" key. |
| Decimal Decimal Decimal Decimal | The decimal (.) key as located on a numeric pad. |
| Delete Delete Delete Delete | The Delete key. |
| Divide Divide Divide Divide | The divide (/) operation key as located on a numeric pad. |
| Down Down Down Down | The Down Arrow key. |
| E E E E | The letter "E" key. |
| End End End End | The End key. |
| Enter Enter Enter Enter | The Enter key. |
| Escape Escape Escape Escape | The Esc key. |
| Execute Execute Execute Execute | The execute key or button. |
| F F F F | The letter "F" key. |
| F1 F1 F1 F1 | The F1 function key. |
| F10 F10 F10 F10 | The F10 function key. |
| F11 F11 F11 F11 | The F11 function key. |
| F12 F12 F12 F12 | The F12 function key. |
| F13 F13 F13 F13 | The F13 function key. |
| F14 F14 F14 F14 | The F14 function key. |
| F15 F15 F15 F15 | The F15 function key. |
| F16 F16 F16 F16 | The F16 function key. |
| F17 F17 F17 F17 | The F17 function key. |
| F18 F18 F18 F18 | The F18 function key. |
| F19 F19 F19 F19 | The F19 function key. |
| F2 F2 F2 F2 | The F2 function key. |
| F20 F20 F20 F20 | The F20 function key. |
| F21 F21 F21 F21 | The F21 function key. |
| F22 F22 F22 F22 | The F22 function key. |
| F23 F23 F23 F23 | The F23 function key. |
| F24 F24 F24 F24 | The F24 function key. |
| F3 F3 F3 F3 | The F3 function key. |
| F4 F4 F4 F4 | The F4 function key. |
| F5 F5 F5 F5 | The F5 function key. |
| F6 F6 F6 F6 | The F6 function key. |
| F7 F7 F7 F7 | The F7 function key. |
| F8 F8 F8 F8 | The F8 function key. |
| F9 F9 F9 F9 | The F9 function key. |
| Favorites Favorites Favorites Favorites | The favorites key. |
| Final Final Final Final | The Final symbol key-shift button. |
| G G G G | The letter "G" key. |
| GamepadA GamepadA GamepadA GamepadA | The gamepad A button. |
| GamepadB GamepadB GamepadB GamepadB | The gamepad B button. |
| GamepadDPadDown GamepadDPadDown GamepadDPadDown GamepadDPadDown | The gamepad d-pad down. |
| GamepadDPadLeft GamepadDPadLeft GamepadDPadLeft GamepadDPadLeft | The gamepad d-pad left. |
| GamepadDPadRight GamepadDPadRight GamepadDPadRight GamepadDPadRight | The gamepad d-pad right. |
| GamepadDPadUp GamepadDPadUp GamepadDPadUp GamepadDPadUp | The gamepad d-pad up. |
| GamepadLeftShoulder GamepadLeftShoulder GamepadLeftShoulder GamepadLeftShoulder | The gamepad left shoulder. |
| GamepadLeftThumbstickButton GamepadLeftThumbstickButton GamepadLeftThumbstickButton GamepadLeftThumbstickButton | The gamepad left thumbstick button. |
| GamepadLeftThumbstickDown GamepadLeftThumbstickDown GamepadLeftThumbstickDown GamepadLeftThumbstickDown | The gamepad left thumbstick down. |
| GamepadLeftThumbstickLeft GamepadLeftThumbstickLeft GamepadLeftThumbstickLeft GamepadLeftThumbstickLeft | The gamepad left thumbstick left. |
| GamepadLeftThumbstickRight GamepadLeftThumbstickRight GamepadLeftThumbstickRight GamepadLeftThumbstickRight | The gamepad left thumbstick right. |
| GamepadLeftThumbstickUp GamepadLeftThumbstickUp GamepadLeftThumbstickUp GamepadLeftThumbstickUp | The gamepad left thumbstick up. |
| GamepadLeftTrigger GamepadLeftTrigger GamepadLeftTrigger GamepadLeftTrigger | The gamepad left trigger. |
| GamepadMenu GamepadMenu GamepadMenu GamepadMenu | The gamepad menu button. |
| GamepadRightShoulder GamepadRightShoulder GamepadRightShoulder GamepadRightShoulder | The gamepad right shoulder. |
| GamepadRightThumbstickButton GamepadRightThumbstickButton GamepadRightThumbstickButton GamepadRightThumbstickButton | The gamepad right thumbstick button. |
| GamepadRightThumbstickDown GamepadRightThumbstickDown GamepadRightThumbstickDown GamepadRightThumbstickDown | The gamepad right thumbstick down. |
| GamepadRightThumbstickLeft GamepadRightThumbstickLeft GamepadRightThumbstickLeft GamepadRightThumbstickLeft | The gamepad right thumbstick left. |
| GamepadRightThumbstickRight GamepadRightThumbstickRight GamepadRightThumbstickRight GamepadRightThumbstickRight | The gamepad right thumbstick right. |
| GamepadRightThumbstickUp GamepadRightThumbstickUp GamepadRightThumbstickUp GamepadRightThumbstickUp | The gamepad right thumbstick up. |
| GamepadRightTrigger GamepadRightTrigger GamepadRightTrigger GamepadRightTrigger | The gamepad right trigger. |
| GamepadView GamepadView GamepadView GamepadView | The gamepad view button. |
| GamepadX GamepadX GamepadX GamepadX | The gamepad X button. |
| GamepadY GamepadY GamepadY GamepadY | The gamepad Y button. |
| GoBack GoBack GoBack GoBack | The go back key. |
| GoForward GoForward GoForward GoForward | The go forward key. |
| GoHome GoHome GoHome GoHome | The go home key. |
| H H H H | The letter "H" key. |
| Hangul Hangul Hangul Hangul | The Hangul symbol key-shift button. |
| Hanja Hanja Hanja Hanja | The Hanja symbol key shift button. |
| Help Help Help Help | The Help key or button. |
| Home Home Home Home | The Home key. |
| I I I I | The letter "I" key. |
| Insert Insert Insert Insert | The Insert key. |
| J J J J | The letter "J" key. |
| Junja Junja Junja Junja | The Junja symbol key-shift button. |
| K K K K | The letter "K" key. |
| Kana Kana Kana Kana | The Kana symbol key-shift button . |
| Kanji Kanji Kanji Kanji | The Kanji symbol key-shift button. |
| L L L L | The letter "L" key. |
| Left Left Left Left | The Left Arrow key. |
| LeftButton LeftButton LeftButton LeftButton | The left mouse button. |
| LeftControl LeftControl LeftControl LeftControl | The left Ctrl key. |
| LeftMenu LeftMenu LeftMenu LeftMenu | The left menu key. |
| LeftShift LeftShift LeftShift LeftShift | The left Shift key. |
| LeftWindows LeftWindows LeftWindows LeftWindows | The left Windows key. |
| M M M M | The letter "M" key. |
| Menu Menu Menu Menu | The menu key or button. |
| MiddleButton MiddleButton MiddleButton MiddleButton | The middle mouse button. |
| ModeChange ModeChange ModeChange ModeChange | The mode change key. |
| Multiply Multiply Multiply Multiply | The multiply (*) operation key as located on a numeric pad. |
| N N N N | The letter "N" key. |
| NavigationAccept NavigationAccept NavigationAccept NavigationAccept | The navigation accept button. |
| NavigationCancel NavigationCancel NavigationCancel NavigationCancel | The navigation cancel button. |
| NavigationDown NavigationDown NavigationDown NavigationDown | The navigation down button. |
| NavigationLeft NavigationLeft NavigationLeft NavigationLeft | The navigation left button. |
| NavigationMenu NavigationMenu NavigationMenu NavigationMenu | The navigation menu button. |
| NavigationRight NavigationRight NavigationRight NavigationRight | The navigation right button. |
| NavigationUp NavigationUp NavigationUp NavigationUp | The navigation up button. |
| NavigationView NavigationView NavigationView NavigationView | The navigation up button. |
| NonConvert NonConvert NonConvert NonConvert | The nonconvert button or key. |
| None None None None | No virtual key value. |
| Number0 Number0 Number0 Number0 | The number "0" key. |
| Number1 Number1 Number1 Number1 | The number "1" key. |
| Number2 Number2 Number2 Number2 | The number "2" key. |
| Number3 Number3 Number3 Number3 | The number "3" key. |
| Number4 Number4 Number4 Number4 | The number "4" key. |
| Number5 Number5 Number5 Number5 | The number "5" key. |
| Number6 Number6 Number6 Number6 | The number "6" key. |
| Number7 Number7 Number7 Number7 | The number "7" key. |
| Number8 Number8 Number8 Number8 | The number "8" key. |
| Number9 Number9 Number9 Number9 | The number "9" key. |
| NumberKeyLock NumberKeyLock NumberKeyLock NumberKeyLock | The Num Lock key. |
| NumberPad0 NumberPad0 NumberPad0 NumberPad0 | The number "0" key as located on a numeric pad. |
| NumberPad1 NumberPad1 NumberPad1 NumberPad1 | The number "1" key as located on a numeric pad. |
| NumberPad2 NumberPad2 NumberPad2 NumberPad2 | The number "2" key as located on a numeric pad. |
| NumberPad3 NumberPad3 NumberPad3 NumberPad3 | The number "3" key as located on a numeric pad. |
| NumberPad4 NumberPad4 NumberPad4 NumberPad4 | The number "4" key as located on a numeric pad. |
| NumberPad5 NumberPad5 NumberPad5 NumberPad5 | The number "5" key as located on a numeric pad. |
| NumberPad6 NumberPad6 NumberPad6 NumberPad6 | The number "6" key as located on a numeric pad. |
| NumberPad7 NumberPad7 NumberPad7 NumberPad7 | The number "7" key as located on a numeric pad. |
| NumberPad8 NumberPad8 NumberPad8 NumberPad8 | The number "8" key as located on a numeric pad. |
| NumberPad9 NumberPad9 NumberPad9 NumberPad9 | The number "9" key as located on a numeric pad. |
| O O O O | The letter "O" key. |
| P P P P | The letter "P" key. |
| PageDown PageDown PageDown PageDown | The Page Down key. |
| PageUp PageUp PageUp PageUp | The Page Up key. |
| Pause Pause Pause Pause | The Pause key or button. |
| Print Print Print Print | The Print key or button. |
| Q Q Q Q | The letter "Q" key. |
| R R R R | The letter "R" key. |
| Refresh Refresh Refresh Refresh | The refresh key. |
| Right Right Right Right | The Right Arrow key. |
| RightButton RightButton RightButton RightButton | The right mouse button. |
| RightControl RightControl RightControl RightControl | The right Ctrl key. |
| RightMenu RightMenu RightMenu RightMenu | The right menu key. |
| RightShift RightShift RightShift RightShift | The right Shift key. |
| RightWindows RightWindows RightWindows RightWindows | The right Windows key. |
| S S S S | The letter "S" key. |
| Scroll Scroll Scroll Scroll | The Scroll Lock (ScrLk) key. |
| Search Search Search Search | The search key. |
| Select Select Select Select | The Select key or button. |
| Separator Separator Separator Separator | The separator key as located on a numeric pad. |
| Shift Shift Shift Shift | The Shift key. This is the general Shift case, applicable to key layouts with only one Shift key or that do not need to differentiate between left Shift and right Shift keystrokes. |
| Sleep Sleep Sleep Sleep | The sleep key or button. |
| Snapshot Snapshot Snapshot Snapshot | The snapshot key or button. |
| Space Space Space Space | The Spacebar key or button. |
| Stop Stop Stop Stop | The stop key. |
| Subtract Subtract Subtract Subtract | The subtract (-) operation key as located on a numeric pad. |
| T T T T | The letter "T" key. |
| Tab Tab Tab Tab | The Tab key. |
| U U U U | The letter "U" key. |
| Up Up Up Up | The Up Arrow key. |
| V V V V | The letter "V" key. |
| W W W W | The letter "W" key. |
| X X X X | The letter "X" key. |
| XButton1 XButton1 XButton1 XButton1 | An additional "extended" device key or button (for example, an additional mouse button). |
| XButton2 XButton2 XButton2 XButton2 | An additional "extended" device key or button (for example, an additional mouse button). |
| Y Y Y Y | The letter "Y" key. |
| Z Z Z Z | The letter "Z" key. |