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 Enumeration Key
public enum Key
<object property="enumMemberName"/>


Member name Description
None A special value indicating no key.
Back The BACKSPACE key.
Tab The TAB key.
Enter The ENTER key.
Shift The SHIFT key.
Ctrl The CTRL (control) key.
Alt The ALT key.
CapsLock The CAPSLOCK key.
Escape The ESC (also known as ESCAPE) key.
Space The SPACE key.
PageUp The PAGEUP key.
PageDown The PAGEDOWN key.
End The END key.
Home The HOME key.
Left The left arrow key.
Up The up arrow key.
Right The right arrow key.
Down The down arrow key.
Insert The INSERT key.
Delete The DEL (also known as DELETE) key.
D0 The 0 (zero) key.
D1 The 1 key.
D2 The 2 key.
D3 The 3 key.
D4 The 4 key.
D5 The 5 key.
D6 The 6 key.
D7 The 7 key.
D8 The 8 key.
D9 The 9 key.
A The A key.
B The B key.
C The C key.
D The D key.
E The E key.
F The F key.
G The G key.
H The H key.
I The I key.
J The J key.
K The K key.
L The L key.
M The M key.
N The N key.
O The O key.
P The P key.
Q The Q key.
R The R key.
S The S key.
T The T key.
U The U key.
V The V key.
W The W key.
X The X key.
Y The Y key.
Z The Z key.
F1 The F1 key.
F2 The F2 key.
F3 The F3 key.
F4 The F4 key.
F5 The F5 key.
F6 The F6 key.
F7 The F7 key.
F8 The F8 key.
F9 The F9 key.
F10 The F10 key.
F11 The F11 key.
F12 The F12 key.
NumPad0 The 0 key on the number pad.
NumPad1 The 1 key on the number pad.
NumPad2 The 2 key on the number pad.
NumPad3 The 3 key on the number pad.
NumPad4 The 4 key on the number pad.
NumPad5 The 5 key on the number pad.
NumPad6 The 6 key on the number pad.
NumPad7 The 7 key on the number pad.
NumPad8 The 8 key on the number pad.
NumPad9 The 9 key on the number pad.
Multiply The * (MULTIPLY) key.
Add The + (ADD) key.
Subtract The - (SUBTRACT) key.
Decimal The . (DECIMAL) key.
Divide The / (DIVIDE) key.
Unknown A special value indicating the key is out of range of this enumeration.

Version Information

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0


Windows Phone

See Also


System.Windows.Input Namespace