Table of Contents

Enum Key

Namespace
BSGameLib.Game.Input
Assembly
BSGameLib.Game.dll

A key on the keyboard. The values are Windows virtual-key codes.

public enum Key

Fields

A = 65

The A key.

B = 66

The B key.

BackSlash = 220

The backslash key.

BackTick = 192

The backtick and tilde key, above Tab.

Backspace = 8

The Backspace key.

C = 67

The C key.

CapsLock = 20

The Caps Lock key.

CloseBracket = 221

The closing bracket key, ] on a US keyboard.

Comma = 188

The comma key.

D = 68

The D key.

D0 = 48

The 0 key on the top row.

D1 = 49

The 1 key on the top row.

D2 = 50

The 2 key on the top row.

D3 = 51

The 3 key on the top row.

D4 = 52

The 4 key on the top row.

D5 = 53

The 5 key on the top row.

D6 = 54

The 6 key on the top row.

D7 = 55

The 7 key on the top row.

D8 = 56

The 8 key on the top row.

D9 = 57

The 9 key on the top row.

Delete = 46

The Delete key.

DownArrow = 40

The down arrow key.

E = 69

The E key.

End = 35

The End key.

Enter = 13

The Enter key on the main keyboard.

Equals = 61

The equals and plus key, on the top row.

Escape = 27

The Escape key.

F = 70

The F key.

F1 = 112

The F1 function key.

F10 = 121

The F10 function key.

F11 = 122

The F11 function key.

F12 = 123

The F12 function key.

F13 = 124

The F13 function key.

F14 = 125

The F14 function key.

F15 = 126

The F15 function key.

F16 = 127

The F16 function key.

F17 = 128

The F17 function key.

F18 = 129

The F18 function key.

F19 = 130

The F19 function key.

F2 = 113

The F2 function key.

F20 = 131

The F20 function key.

F21 = 132

The F21 function key.

F22 = 133

The F22 function key.

F23 = 134

The F23 function key.

F24 = 135

The F24 function key.

F3 = 114

The F3 function key.

F4 = 115

The F4 function key.

F5 = 116

The F5 function key.

F6 = 117

The F6 function key.

F7 = 118

The F7 function key.

F8 = 119

The F8 function key.

F9 = 120

The F9 function key.

G = 71

The G key.

H = 72

The H key.

Home = 36

The Home key.

I = 73

The I key.

Insert = 45

The Insert key.

J = 74

The J key.

K = 75

The K key.

L = 76

The L key.

LaunchApplication1 = 182

The first application launch key.

LaunchApplication2 = 183

The second application launch key.

LaunchMail = 180

The key that launches mail.

LaunchMediaSelect = 181

The key that opens the media selection.

LeftAlt = 164

The left Alt key.

LeftArrow = 37

The left arrow key.

LeftControl = 162

The left Control key.

LeftShift = 160

The left Shift key.

LeftWindows = 91

The left Windows key, which is Command on macOS.

M = 77

The M key.

MediaNext = 176

The next track media key.

MediaPlayPause = 179

The play and pause media key.

MediaPrevious = 177

The previous track media key.

MediaStop = 178

The media stop key.

MenuApps = 93

The application menu key, which opens the context menu.

MinusUnderscore = 189

The minus and underscore key, on the top row.

N = 78

The N key.

None = 0

No key.

NumAdd = 107

Add on the numeric keypad.

NumDivide = 111

Divide on the numeric keypad.

NumLock = 144

The Num Lock key.

NumMultiply = 106

Multiply on the numeric keypad.

NumPad0 = 96

The 0 key on the numeric keypad.

NumPad1 = 97

The 1 key on the numeric keypad.

NumPad2 = 98

The 2 key on the numeric keypad.

NumPad3 = 99

The 3 key on the numeric keypad.

NumPad4 = 100

The 4 key on the numeric keypad.

NumPad5 = 101

The 5 key on the numeric keypad.

NumPad6 = 102

The 6 key on the numeric keypad.

NumPad7 = 103

The 7 key on the numeric keypad.

NumPad8 = 104

The 8 key on the numeric keypad.

NumPad9 = 105

The 9 key on the numeric keypad.

NumPeriod = 110

Decimal point on the numeric keypad.

NumSubtract = 109

Subtract on the numeric keypad.

O = 79

The O key.

OpenBracket = 219

The opening bracket key, [ on a US keyboard.

P = 80

The P key.

PageDown = 34

The Page Down key.

PageUp = 33

The Page Up key.

Pause = 19

The Pause key.

Period = 190

The period key.

PrintScreen = 44

The Print Screen key.

Q = 81

The Q key.

Quote = 222

The apostrophe and quote key.

R = 82

The R key.

RightAlt = 165

The right Alt key.

RightArrow = 39

The right arrow key.

RightControl = 163

The right Control key.

RightShift = 161

The right Shift key.

RightWindows = 92

The right Windows key, which is Command on macOS.

S = 83

The S key.

ScrollLock = 145

The Scroll Lock key.

SemiColon = 59

The semicolon key.

Slash = 191

The forward slash key.

SpaceBar = 32

The space bar.

T = 84

The T key.

Tab = 9

The Tab key.

U = 85

The U key.

UpArrow = 38

The up arrow key.

V = 86

The V key.

VolumeDown = 175

The volume down key.

VolumeMute = 173

The volume mute key.

VolumeUp = 174

The volume up key.

W = 87

The W key.

X = 88

The X key.

Y = 89

The Y key.

Z = 90

The Z key.