Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
This topic has not yet been rated - Rate this topic

Key Enumeration

Specifies the possible key values on a keyboard.

Namespace:  System.Windows.Input
Assembly:  System.Windows (in System.Windows.dll)
public enum Key
<object property="enumMemberName"/>
Member nameDescription
Supported by Silverlight for Windows PhoneNoneA special value indicating no key.
Supported by Silverlight for Windows PhoneBackThe BACKSPACE key.
Supported by Silverlight for Windows PhoneTabThe TAB key.
Supported by Silverlight for Windows PhoneEnterThe ENTER key.
Supported by Silverlight for Windows PhoneShiftThe SHIFT key.
Supported by Silverlight for Windows PhoneCtrlThe CTRL (control) key.
Supported by Silverlight for Windows PhoneAltThe ALT key.
Supported by Silverlight for Windows PhoneCapsLockThe CAPSLOCK key.
Supported by Silverlight for Windows PhoneEscapeThe ESC (also known as ESCAPE) key.
Supported by Silverlight for Windows PhoneSpaceThe SPACE key.
Supported by Silverlight for Windows PhonePageUpThe PAGEUP key.
Supported by Silverlight for Windows PhonePageDownThe PAGEDOWN key.
Supported by Silverlight for Windows PhoneEndThe END key.
Supported by Silverlight for Windows PhoneHomeThe HOME key.
Supported by Silverlight for Windows PhoneLeftThe left arrow key.
Supported by Silverlight for Windows PhoneUpThe up arrow key.
Supported by Silverlight for Windows PhoneRightThe right arrow key.
Supported by Silverlight for Windows PhoneDownThe down arrow key.
Supported by Silverlight for Windows PhoneInsertThe INSERT key.
Supported by Silverlight for Windows PhoneDeleteThe DEL (also known as DELETE) key.
Supported by Silverlight for Windows PhoneD0The 0 (zero) key.
Supported by Silverlight for Windows PhoneD1The 1 key.
Supported by Silverlight for Windows PhoneD2The 2 key.
Supported by Silverlight for Windows PhoneD3The 3 key.
Supported by Silverlight for Windows PhoneD4The 4 key.
Supported by Silverlight for Windows PhoneD5The 5 key.
Supported by Silverlight for Windows PhoneD6The 6 key.
Supported by Silverlight for Windows PhoneD7The 7 key.
Supported by Silverlight for Windows PhoneD8The 8 key.
Supported by Silverlight for Windows PhoneD9The 9 key.
Supported by Silverlight for Windows PhoneAThe A key.
Supported by Silverlight for Windows PhoneBThe B key.
Supported by Silverlight for Windows PhoneCThe C key.
Supported by Silverlight for Windows PhoneDThe D key.
Supported by Silverlight for Windows PhoneEThe E key.
Supported by Silverlight for Windows PhoneFThe F key.
Supported by Silverlight for Windows PhoneGThe G key.
Supported by Silverlight for Windows PhoneHThe H key.
Supported by Silverlight for Windows PhoneIThe I key.
Supported by Silverlight for Windows PhoneJThe J key.
Supported by Silverlight for Windows PhoneKThe K key.
Supported by Silverlight for Windows PhoneLThe L key.
Supported by Silverlight for Windows PhoneMThe M key.
Supported by Silverlight for Windows PhoneNThe N key.
Supported by Silverlight for Windows PhoneOThe O key.
Supported by Silverlight for Windows PhonePThe P key.
Supported by Silverlight for Windows PhoneQThe Q key.
Supported by Silverlight for Windows PhoneRThe R key.
Supported by Silverlight for Windows PhoneSThe S key.
Supported by Silverlight for Windows PhoneTThe T key.
Supported by Silverlight for Windows PhoneUThe U key.
Supported by Silverlight for Windows PhoneVThe V key.
Supported by Silverlight for Windows PhoneWThe W key.
Supported by Silverlight for Windows PhoneXThe X key.
Supported by Silverlight for Windows PhoneYThe Y key.
Supported by Silverlight for Windows PhoneZThe Z key.
Supported by Silverlight for Windows PhoneF1The F1 key.
Supported by Silverlight for Windows PhoneF2The F2 key.
Supported by Silverlight for Windows PhoneF3The F3 key.
Supported by Silverlight for Windows PhoneF4The F4 key.
Supported by Silverlight for Windows PhoneF5The F5 key.
Supported by Silverlight for Windows PhoneF6The F6 key.
Supported by Silverlight for Windows PhoneF7The F7 key.
Supported by Silverlight for Windows PhoneF8The F8 key.
Supported by Silverlight for Windows PhoneF9The F9 key.
Supported by Silverlight for Windows PhoneF10The F10 key.
Supported by Silverlight for Windows PhoneF11The F11 key.
Supported by Silverlight for Windows PhoneF12The F12 key.
Supported by Silverlight for Windows PhoneNumPad0The 0 key on the number pad.
Supported by Silverlight for Windows PhoneNumPad1The 1 key on the number pad.
Supported by Silverlight for Windows PhoneNumPad2The 2 key on the number pad.
Supported by Silverlight for Windows PhoneNumPad3The 3 key on the number pad.
Supported by Silverlight for Windows PhoneNumPad4The 4 key on the number pad.
Supported by Silverlight for Windows PhoneNumPad5The 5 key on the number pad.
Supported by Silverlight for Windows PhoneNumPad6The 6 key on the number pad.
Supported by Silverlight for Windows PhoneNumPad7The 7 key on the number pad.
Supported by Silverlight for Windows PhoneNumPad8The 8 key on the number pad.
Supported by Silverlight for Windows PhoneNumPad9The 9 key on the number pad.
Supported by Silverlight for Windows PhoneMultiplyThe * (MULTIPLY) key.
Supported by Silverlight for Windows PhoneAddThe + (ADD) key.
Supported by Silverlight for Windows PhoneSubtractThe - (SUBTRACT) key.
Supported by Silverlight for Windows PhoneDecimalThe . (DECIMAL) key.
Supported by Silverlight for Windows PhoneDivideThe / (DIVIDE) key.
Supported by Silverlight for Windows PhoneUnknownA special value indicating the key is out of range of this enumeration.

To detect key combinations or modifier keys, use techniques as documented in the topic Keyboard Support.

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

Show:
© 2014 Microsoft. All rights reserved.