Key Enumeration

Key Enumeration

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Specifies the possible key values on a keyboard.

Namespace:  System.Windows.Input
Assembly:  System.Windows (in System.Windows.dll)
XMLNS for XAML: Not mapped to an xmlns.

public enum Key
<object property="enumMemberName"/>

Member nameDescription
NoneA special value indicating no key.
BackThe BACKSPACE key.
TabThe TAB key.
EnterThe ENTER key.
ShiftThe SHIFT key.
CtrlThe CTRL (control) key.
AltThe ALT key.
CapsLockThe CAPSLOCK key.
EscapeThe ESC (also known as ESCAPE) key.
SpaceThe SPACE key.
PageUpThe PAGEUP key.
PageDownThe PAGEDOWN key.
EndThe END key.
HomeThe HOME key.
LeftThe left arrow key.
UpThe up arrow key.
RightThe right arrow key.
DownThe down arrow key.
InsertThe INSERT key.
DeleteThe DEL (also known as DELETE) key.
D0The 0 (zero) key.
D1The 1 key.
D2The 2 key.
D3The 3 key.
D4The 4 key.
D5The 5 key.
D6The 6 key.
D7The 7 key.
D8The 8 key.
D9The 9 key.
AThe A key.
BThe B key.
CThe C key.
DThe D key.
EThe E key.
FThe F key.
GThe G key.
HThe H key.
IThe I key.
JThe J key.
KThe K key.
LThe L key.
MThe M key.
NThe N key.
OThe O key.
PThe P key.
QThe Q key.
RThe R key.
SThe S key.
TThe T key.
UThe U key.
VThe V key.
WThe W key.
XThe X key.
YThe Y key.
ZThe Z key.
F1The F1 key.
F2The F2 key.
F3The F3 key.
F4The F4 key.
F5The F5 key.
F6The F6 key.
F7The F7 key.
F8The F8 key.
F9The F9 key.
F10The F10 key.
F11The F11 key.
F12The F12 key.
NumPad0The 0 key on the number pad.
NumPad1The 1 key on the number pad.
NumPad2The 2 key on the number pad.
NumPad3The 3 key on the number pad.
NumPad4The 4 key on the number pad.
NumPad5The 5 key on the number pad.
NumPad6The 6 key on the number pad.
NumPad7The 7 key on the number pad.
NumPad8The 8 key on the number pad.
NumPad9The 9 key on the number pad.
MultiplyThe * (MULTIPLY) key.
AddThe + (ADD) key.
SubtractThe - (SUBTRACT) key.
DecimalThe . (DECIMAL) key.
DivideThe / (DIVIDE) key.
UnknownA special value indicating the key is out of range of this enumeration.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

© 2017 Microsoft