Table of Contents

Enum Key

Namespace
Alternet.UI
Assembly
Alternet.UI.Interfaces.dll

An enumeration of all of the possible key values on a keyboard.

[TypeConverter("Alternet.UI.KeyConverter")]
[ValueSerializer("Alternet.UI.KeyValueSerializer")]
public enum Key

Fields

A = 29

The "A" key.

Accept = 185

The IME accept button or key.

Alt = 128

The "Alt" key on Windows and Linux or "Option" key on macOS.

Ampersand = 139

The ampersand (38, 0x26) key.

Asterisk = 142

The '*' (42, 0x2A) key.

B = 30

The "B" key.

Back = 1

Same as Backspace.

Backslash = 123

The "" key.

Backspace = 1

The "Backspace" key.

Backtick = 125

The "`" key.

BrowserBack = 96

The "Browser Back" key.

BrowserFavorites = 101

The "Browser Favorites" key.

BrowserForward = 97

The "Browser Forward" key.

BrowserHome = 102

The "Browser Home" key.

BrowserRefresh = 98

The "Browser Refresh" key.

BrowserSearch = 100

The "Browser Search" key.

BrowserStop = 99

The "Browser Stop" key.

C = 31

The "C" key.

CapsLock = 5

The "Caps Lock" key.

CircumflexAccent = 149

The '^' (94, 0x5E) key.

Clear = 124

The "Clear" key.

CloseBracket = 121

The "]" key.

Colon = 144

The ':' (58, 0x3A) key.

Comma = 116

The "," key.

CommercialAt = 148

The '@' (64, 0x40) key.

Control = 127

The "Control" key.

Convert = 183

The IME convert button or key.

D = 32

The "D" key.

D0 = 19

The "0" key.

D1 = 20

The "1" key.

D2 = 21

The "2" key.

D3 = 22

The "3" key.

D4 = 23

The "4" key.

D5 = 24

The "5" key.

D6 = 25

The "6" key.

D7 = 26

The "7" key.

D8 = 27

The "8" key.

D9 = 28

The "9" key.

Delete = 18

The "Delete" key.

DollarSign = 137

The '$' (36, 0x24) key.

Down = 15

Same as DownArrow.

DownArrow = 15

The "Down Arrow" key.

E = 33

The "E" key.

End = 10

The "End" key.

Enter = 3

The "Enter" key.

Equals = 115

The "=" key.

Escape = 6

The "Esc" key.

ExclamationMark = 134

The '!' (33, 0x21) key.

Execute = 188

The execute key or button.

F = 34

The "F" key.

F1 = 70

The "F1" key.

F10 = 79

The "F10" key.

F11 = 80

The "F11" key.

F12 = 81

The "F12" key.

F13 = 82

The "F13" key.

F14 = 83

The "F14" key.

F15 = 84

The "F15" key.

F16 = 85

The "F16" key.

F17 = 86

The "F17" key.

F18 = 87

The "F18" key.

F19 = 88

The "F19" key.

F2 = 71

The "F2" key.

F20 = 89

The "F20" key.

F21 = 90

The "F21" key.

F22 = 91

The "F22" key.

F23 = 92

The "F23" key.

F24 = 93

The "F24" key.

F3 = 72

The "F3" key.

F4 = 73

The "F4" key.

F5 = 74

The "F5" key.

F6 = 75

The "F6" key.

F7 = 76

The "F7" key.

F8 = 77

The "F8" key.

F9 = 78

The "F9" key.

Final = 181

The Final symbol key-shift button.

G = 35

The "G" key.

GamepadA = 155

The gamepad A button.

GamepadB = 156

The gamepad B button.

GamepadDPadDown = 164

The gamepad d-pad down.

GamepadDPadLeft = 165

The gamepad d-pad left.

GamepadDPadRight = 166

The gamepad d-pad right.

GamepadDPadUp = 163

The gamepad d-pad up.

GamepadLeftShoulder = 160

The gamepad left shoulder.

GamepadLeftThumbstickButton = 169

The gamepad left thumbstick button.

GamepadLeftThumbstickDown = 172

The gamepad left thumbstick down.

GamepadLeftThumbstickLeft = 174

The gamepad left thumbstick left.

GamepadLeftThumbstickRight = 173

The gamepad left thumbstick right.

GamepadLeftThumbstickUp = 171

The gamepad left thumbstick up.

GamepadLeftTrigger = 161

The gamepad left trigger.

GamepadMenu = 167

The gamepad menu button.

GamepadRightShoulder = 159

The gamepad right shoulder.

GamepadRightThumbstickButton = 170

The gamepad right thumbstick button.

GamepadRightThumbstickDown = 176

The gamepad right thumbstick down.

GamepadRightThumbstickLeft = 178

The gamepad right thumbstick left.

GamepadRightThumbstickRight = 177

The gamepad right thumbstick right.

GamepadRightThumbstickUp = 175

The gamepad right thumbstick up.

GamepadRightTrigger = 162

The gamepad right trigger.

GamepadView = 168

The gamepad view button.

GamepadX = 157

The gamepad X button.

GamepadY = 158

The gamepad Y button.

GreaterThanSign = 146

The greater than sign (62, 0x3E) key.

H = 36

The "H" key.

Hangul = 179

The Hangul symbol key-shift button.

Hanja = 182

The Hanja symbol key shift button.

Home = 11

The "Home" key.

I = 37

The "I" key.

Insert = 17

The "Insert" key.

J = 38

The "J" key.

Junja = 180

The Junja symbol key-shift button.

K = 39

The "K" key.

Kana = 179

The Kana symbol key-shift button

Kanji = 182

The Kanji symbol key-shift button.

L = 40

The "L" key.

LaunchApplication1 = 112

The "Launch Application1" key.

LaunchApplication2 = 113

The "Launch Application2" key.

LaunchMail = 110

The "Launch Mail" key.

Left = 12

Same as LeftArrow.

LeftArrow = 12

The "Left Arrow" key.

LeftCurlyBracket = 151

The '{', 123, 0x7B) key.

LeftParenthesis = 140

The '(' (40, 0x28) key.

LessThanSign = 145

The less than sign (60, 0x3C) key.

LowLine = 150

The '_' (95, 0x5F) key.

M = 41

The "M" key.

MacCommand = 129

The "Command" key on Apple keyboard.

MacControl = 131

The "Control" key on Apple keyboard.

MacOption = 130

The "Option" key on Apple keyboard.

Max = 198

Max enum value.

MaxMaui = 198

Max supported enum value when library is running on Maui platform.

MaxWxWidgets = 154

Max supported enum value when library is running on WxWidgets platform.

MediaNextTrack = 106

The "Media Next Track" key.

MediaPlayPause = 109

The "Media Play Pause" key.

MediaPreviousTrack = 107

The "Media Previous Track" key.

MediaStop = 108

The "Media Stop" key.

Menu = 133

The Microsoft "Menu" key.

Minus = 117

The "-" key.

ModeChange = 186

The IME mode change key.

N = 42

The "N" key.

NavigationAccept = 197

The navigation accept button.

NavigationCancel = 198

The navigation cancel button.

NavigationDown = 194

The navigation down button.

NavigationLeft = 195

The navigation left button.

NavigationMenu = 192

The navigation menu button.

NavigationRight = 196

The navigation right button.

NavigationUp = 193

The navigation up button.

NavigationView = 191

The navigation up button.

Next = 9

Same as PageDown.

NonConvert = 184

The IME nonconvert button or key.

None = 0

No key pressed.

NumLock = 94

The "Num Lock" key.

NumPad0 = 55

The "0" key on the numeric keypad.

NumPad1 = 56

The "1" key on the numeric keypad.

NumPad2 = 57

The "2" key on the numeric keypad.

NumPad3 = 58

The "3" key on the numeric keypad.

NumPad4 = 59

The "4" key on the numeric keypad.

NumPad5 = 60

The "5" key on the numeric keypad.

NumPad6 = 61

The "6" key on the numeric keypad.

NumPad7 = 62

The "7" key on the numeric keypad.

NumPad8 = 63

The "8" key on the numeric keypad.

NumPad9 = 64

The "9" key on the numeric keypad.

NumPadDot = 68

The "." key on the numeric keypad.

NumPadMinus = 67

The "-" key on the numeric keypad.

NumPadPlus = 66

The "+" key on the numeric keypad.

NumPadSlash = 69

The "/" on the numeric keypad.

NumPadStar = 65

The "*" key on the numeric keypad.

NumberSign = 136

The '#' (35, 0x23) key.

O = 43

The "O" key.

OemCloseBrackets = 121

Same as CloseBracket.

OemOpenBrackets = 120

Same as OpenBracket.

OemPeriod = 118

Same as Period.

OemPipe = 152

The OEM pipe key on a US standard keyboard. The pipe symbol (|) resembles a vertical line. What is it exactly? Currently mapped as VerticalLine.

OpenBracket = 120

The "[" key.

P = 44

The "P" key.

PageDown = 9

The "Page Down" key.

PageUp = 8

The "Page Up" key.

Pause = 4

The "Pause" key.

PercentSign = 138

The '%' (37, 0x25) key.

Period = 118

The "." key.

PlusSign = 143

The '+' (43, 0x2B) key.

PrintScreen = 16

The "Print Screen" key.

Prior = 8

Same as PageUp.

Q = 45

The "Q" key.

QuestionMark = 147

The '?' (63, 0x3F) key.

QuotationMark = 135

The '"' (34, 0x220) key.

Quote = 122

The "'" key.

R = 46

The "R" key.

Return = 3

Same as Enter.

Right = 14

Same as RightArrow.

RightArrow = 14

The "Right Arrow" key.

RightCurlyBracket = 153

The '}', 125, 0x7D) key.

RightParenthesis = 141

The ')' (41, 0x29) key.

S = 47

The "S" key.

ScrollLock = 95

The "Scroll Lock" key.

Select = 187

The Select key or button.

SelectMedia = 111

The "Select Media" key.

Semicolon = 114

The ";" key.

Shift = 126

The "Shift" key.

Slash = 119

The "/" key.

Sleep = 190

The sleep key or button.

Snapshot = 189

The snapshot key or button.

Space = 7

The "Space Bar" key.

T = 48

The "T" key.

Tab = 2

The "Tab" key.

Tilde = 154

The '~', 126, 0x7E) key.

U = 49

The "U" key.

Up = 13

Same as UpArrow.

UpArrow = 13

The "Up Arrow" key.

V = 50

The "V" key.

VerticalLine = 152

The '|', 124, 0x7C) key.

VolumeDown = 104

The "Volume Down" key.

VolumeMute = 103

The "Volume Mute" key.

VolumeUp = 105

The "Volume Up" key.

W = 51

The "W" key.

Windows = 132

The Microsoft "Windows Logo" key on Windows or "Command" key on macOS or "Meta" key on Linux.

X = 52

The "X" key.

Y = 53

The "Y" key.

Z = 54

The "Z" key.