System::Windows::Forms::Keys enum

Keys enum

Known keys.

enum class Keys

Values

NameValueDescription
Modifiers-65536Modifiers mask.
None0No key.
LButton1Left mouse button.
RButton2Right mouse button.
Cancel3Cancel key.
MButton4Medium mouse button.
XButton15Extra mouse button 1.
XButton26Extra mouse button 2.
Back8Back key.
Tab9Tab key.
LineFeed10Line feed key.
Clear12Clear key.
Return13Return key.
Enter13Enter key.
ShiftKey16Shift key.
ControlKey17Control key.
Menu18Menu key.
Pause19Pause key.
Capital20Capital key.
CapsLock20Caps Lock key.
KanaMode21Kana mode key.
HanguelMode21Hanguel mode key.
HangulMode21Hangul mode key.
JunjaMode23Junja mode key.
FinalMode24Final mode key.
HanjaMode25Hanja mode key.
KanjiMode25Kanji mode key.
Escape27Escape key.
IMEConvert28IME convert key.
IMENonconvert29IME non-convert key.
IMEAccept30IME accept key.
IMEAceept30IME accept key - variant with a typo.
IMEModeChange31IME mode change key.
Space32Space key.
Prior33Prior key.
PageUp33Page up key.
Next34Next key.
PageDown34Page down key.
End35End key.
Home36Home key.
Left37Left key.
Up38Up key.
Right39Right key.
Down40Down key.
Select41Select key.
Print42Print key.
Execute43Execute key.
Snapshot44Snapshot key.
PrintScreen44Print screen key.
Insert45Insert key.
Delete46Delete key.
Help47Help key.
D0480 key.
D1491 key.
D2502 key.
D3513 key.
D4524 key.
D5535 key.
D6546 key.
D7557 key.
D8568 key.
D9579 key.
A65A key.
B66B key.
C67C key.
D68D key.
E69E key.
F70F key.
G71G key.
H72H key.
I73I key.
J74J key.
K75K key.
L76L key.
M77M key.
N78N key.
O79O key.
P80P key.
Q81Q key.
R82R key.
S83S key.
T84T key.
U85U key.
V86V key.
W87W key.
X88X key.
Y89Y key.
Z90Z key.
LWin91Left Windows key.
RWin92Right Windows key.
Apps93Applications key.
Sleep95Sleep key.
NumPad096Numpad 0 key.
NumPad197Numpad 1 key.
NumPad298Numpad 2 key.
NumPad399Numpad 3 key.
NumPad4100Numpad 4 key.
NumPad5101Numpad 5 key.
NumPad6102Numpad 6 key.
NumPad7103Numpad 7 key.
NumPad8104Numpad 8 key.
NumPad9105Numpad 9 key.
Multiply106Multiply key.
Add107Add key.
Separator108Separator key.
Subtract109Substract key.
Decimal110Decimal point key.
Divide111Divide key.
F1112F1 key.
F2113F2 key.
F3114F3 key.
F4115F4 key.
F5116F5 key.
F6117F6 key.
F7118F7 key.
F8119F8 key.
F9120F9 key.
F10121F10 key.
F11122F11 key.
F12123F12 key.
F13124F13 key.
F14125F14 key.
F15126F15 key.
F16127F16 key.
F17128F17 key.
F18129F18 key.
F19130F19 key.
F20131F20 key.
F21132F21 key.
F22133F22 key.
F23134F23 key.
F24135F24 key.
NumLock144Numeric lock key.
Scroll145Scroll key.
LShiftKey160Left shift key.
RShiftKey161Right shift key.
LControlKey162Left control key.
RControlKey163Right control key.
LMenu164Left menu key.
RMenu165Right menu key.
BrowserBack166Browser back key.
BrowserForward167Browser forward key.
BrowserRefresh168Browser refresh key.
BrowserStop169Browser stop key.
BrowserSearch170Browser search key.
BrowserFavorites171Browser favorites key.
BrowserHome172Browser home key.
VolumeMute173Volume mute key.
VolumeDown174Volume down key.
VolumeUp175Volume up key.
MediaNextTrack176Media next track key.
MediaPreviousTrack177Media previous track key.
MediaStop178Media stop key.
MediaPlayPause179Media play/pause key.
LaunchMail180Launch mail key.
SelectMedia181Select media key.
LaunchApplication1182Launch application key 1.
LaunchApplication2183Launch application key 2.
OemSemicolon186OEM semicolon key.
Oem1186OEM key 1.
Oemplus187OEM plus key.
Oemcomma188OEM comma key.
OemMinus189OEM minus key.
OemPeriod190OEM period key.
OemQuestion191OEM question key.
Oem2191OEM key 2.
Oemtilde192OEM tilde key.
Oem3192OEM key 3.
OemOpenBrackets219OEM open brackets key.
Oem4219OEM key 4.
OemPipe220OEM pipe key.
Oem5220OEM key 5.
OemCloseBrackets221OEM close brackets key.
Oem6221OEM key 6.
OemQuotes222OEM quotes key.
Oem7222OEM key 7.
Oem8223OEM key 8.
OemBackslash226OEM backslash key.
Oem102226OEM key 102.
ProcessKey229Process key.
Packet231Packet key.
Attn246Attention key.
Crsel247CRSEL key.
Exsel248EXSEL key.
EraseEof249EOF erase key.
Play250Play key.
Zoom251Zoom key.
NoName252No name key.
Pa1253Pal key.
OemClear254OEM clear key.
KeyCode65535Key code mask.
Shift65536Shift key code.
Control131072Control key code.
Alt262144Alt key code.

See Also