Table of Contents

Enum Keys

Namespace
Microsoft.Xna.Framework.Input
Assembly
MonoGame.Framework.dll

Defines the keys on a keyboard.

public enum Keys

Fields

A = 65

A key.

Add = 107

Add key.

Apps = 93

Applications key.

Attn = 246

Attn key.

B = 66

B key.

Back = 8

BACKSPACE key.

BrowserBack = 166

Browser Back key.

BrowserFavorites = 171

Browser Favorites key.

BrowserForward = 167

Browser Forward key.

BrowserHome = 172

Browser Start and Home key.

BrowserRefresh = 168

Browser Refresh key.

BrowserSearch = 170

Browser Search key.

BrowserStop = 169

Browser Stop key.

C = 67

C key.

CapsLock = 20

CAPS LOCK key.

ChatPadGreen = 202

Green ChatPad key.

ChatPadOrange = 203

Orange ChatPad key.

Crsel = 247

CrSel key.

D = 68

D key.

D0 = 48

Used for miscellaneous characters; it can vary by keyboard.

D1 = 49

Used for miscellaneous characters; it can vary by keyboard.

D2 = 50

Used for miscellaneous characters; it can vary by keyboard.

D3 = 51

Used for miscellaneous characters; it can vary by keyboard.

D4 = 52

Used for miscellaneous characters; it can vary by keyboard.

D5 = 53

Used for miscellaneous characters; it can vary by keyboard.

D6 = 54

Used for miscellaneous characters; it can vary by keyboard.

D7 = 55

Used for miscellaneous characters; it can vary by keyboard.

D8 = 56

Used for miscellaneous characters; it can vary by keyboard.

D9 = 57

Used for miscellaneous characters; it can vary by keyboard.

Decimal = 110

Decimal key.

Delete = 46

DEL key.

Divide = 111

Divide key.

Down = 40

DOWN ARROW key.

E = 69

E key.

End = 35

END key.

Enter = 13

ENTER key.

EraseEof = 249

Erase EOF key.

Escape = 27

ESC key.

Execute = 43

EXECUTE key.

Exsel = 248

ExSel key.

F = 70

F key.

F1 = 112

F1 key.

F10 = 121

F10 key.

F11 = 122

F11 key.

F12 = 123

F12 key.

F13 = 124

F13 key.

F14 = 125

F14 key.

F15 = 126

F15 key.

F16 = 127

F16 key.

F17 = 128

F17 key.

F18 = 129

F18 key.

F19 = 130

F19 key.

F2 = 113

F2 key.

F20 = 131

F20 key.

F21 = 132

F21 key.

F22 = 133

F22 key.

F23 = 134

F23 key.

F24 = 135

F24 key.

F3 = 114

F3 key.

F4 = 115

F4 key.

F5 = 116

F5 key.

F6 = 117

F6 key.

F7 = 118

F7 key.

F8 = 119

F8 key.

F9 = 120

F9 key.

G = 71

G key.

H = 72

H key.

Help = 47

HELP key.

Home = 36

HOME key.

I = 73

I key.

ImeConvert = 28

IME Convert key.

ImeNoConvert = 29

IME NoConvert key.

Insert = 45

INS key.

J = 74

J key.

K = 75

K key.

Kana = 21

Kana key on Japanese keyboards.

Kanji = 25

Kanji key on Japanese keyboards.

L = 76

L key.

LaunchApplication1 = 182

Start Application 1 key.

LaunchApplication2 = 183

Start Application 2 key.

LaunchMail = 180

Start Mail key.

Left = 37

LEFT ARROW key.

LeftAlt = 164

Left ALT key.

LeftControl = 162

Left CONTROL key.

LeftShift = 160

Left SHIFT key.

LeftWindows = 91

Left Windows key.

M = 77

M key.

MediaNextTrack = 176

Next Track key.

MediaPlayPause = 179

Play/Pause Media key.

MediaPreviousTrack = 177

Previous Track key.

MediaStop = 178

Stop Media key.

Multiply = 106

Multiply key.

N = 78

N key.

None = 0

Reserved.

NumLock = 144

NUM LOCK key.

NumPad0 = 96

Numeric keypad 0 key.

NumPad1 = 97

Numeric keypad 1 key.

NumPad2 = 98

Numeric keypad 2 key.

NumPad3 = 99

Numeric keypad 3 key.

NumPad4 = 100

Numeric keypad 4 key.

NumPad5 = 101

Numeric keypad 5 key.

NumPad6 = 102

Numeric keypad 6 key.

NumPad7 = 103

Numeric keypad 7 key.

NumPad8 = 104

Numeric keypad 8 key.

NumPad9 = 105

Numeric keypad 9 key.

O = 79

O key.

Oem8 = 223

Used for miscellaneous characters; it can vary by keyboard.

OemAuto = 243

OEM Auto key.

OemBackslash = 226

The OEM angle bracket or backslash key on the RT 102 key keyboard.

OemClear = 254

CLEAR key.

OemCloseBrackets = 221

The OEM close bracket key on a US standard keyboard.

OemComma = 188

For any country/region, the ',' key.

OemCopy = 242

OEM Copy key.

OemEnlW = 244

OEM Enlarge Window key.

OemMinus = 189

For any country/region, the '-' key.

OemOpenBrackets = 219

The OEM open bracket key on a US standard keyboard.

OemPeriod = 190

For any country/region, the '.' key.

OemPipe = 220

The OEM pipe key on a US standard keyboard.

OemPlus = 187

For any country/region, the '+' key.

OemQuestion = 191

The OEM question mark key on a US standard keyboard.

OemQuotes = 222

The OEM singled/double quote key on a US standard keyboard.

OemSemicolon = 186

The OEM Semicolon key on a US standard keyboard.

OemTilde = 192

The OEM tilde key on a US standard keyboard.

P = 80

P key.

Pa1 = 253

PA1 key.

PageDown = 34

PAGE DOWN key.

PageUp = 33

PAGE UP key.

Pause = 19

PAUSE key.

Play = 250

Play key.

Print = 42

PRINT key.

PrintScreen = 44

PRINT SCREEN key.

ProcessKey = 229

IME PROCESS key.

Q = 81

Q key.

R = 82

R key.

Right = 39

RIGHT ARROW key.

RightAlt = 165

Right ALT key.

RightControl = 163

Right CONTROL key.

RightShift = 161

Right SHIFT key.

RightWindows = 92

Right Windows key.

S = 83

S key.

Scroll = 145

SCROLL LOCK key.

Select = 41

SELECT key.

SelectMedia = 181

Select Media key.

Separator = 108

Separator key.

Sleep = 95

Computer Sleep key.

Space = 32

SPACEBAR key.

Subtract = 109

Subtract key.

T = 84

T key.

Tab = 9

TAB key.

U = 85

U key.

Up = 38

UP ARROW key.

V = 86

V key.

VolumeDown = 174

Volume Down key.

VolumeMute = 173

Volume Mute key.

VolumeUp = 175

Volume Up key.

W = 87

W key.

X = 88

X key.

Y = 89

Y key.

Z = 90

Z key.

Zoom = 251

Zoom key.