Enum Keycode
Represents a virtual key
public enum Keycode : uint
Fields
A = 97The Keycode for the
'a'key; analogous to the A keyAgain = 1073741945The Keycode for the AGAIN (again / redo) key
AltErase = 1073741977Ampersand = 38The Keycode for the
'&'(ampersand) keyApostrophe = 39The Keycode for the
'''(apostrophe) keyApplication = 1073741925The Keycode for the ☰ (context menu) key on Windows, or the COMPOSE (compose) key elsewhere
ApplicationControlBack = 1073742106The Keycode for the application control "Back" key
ApplicationControlBookmarks = 1073742110The Keycode for the application control "Bookmarks" key
ApplicationControlClose = 1073742099The Keycode for the application control "Close" key
ApplicationControlExit = 1073742100The Keycode for the application control "Exit" key
ApplicationControlForward = 1073742107The Keycode for the application control "Forward" key
ApplicationControlHome = 1073742105The Keycode for the application control "Home" key
ApplicationControlNew = 1073742097The Keycode for the application control "New" key
ApplicationControlOpen = 1073742098The Keycode for the application control "Open" key
ApplicationControlPrint = 1073742102The Keycode for the application control "Print" key
ApplicationControlProperties = 1073742103The Keycode for the application control "Properties" key
ApplicationControlRefresh = 1073742109The Keycode for the application control "Refresh" key
ApplicationControlSave = 1073742101The Keycode for the application control "Save" key
ApplicationControlSearch = 1073742104The Keycode for the application control "Search" key
ApplicationControlStop = 1073742108The Keycode for the application control "Stop" key
Asterisk = 42The Keycode for the
'*'(asterisk) keyAt = 64The Keycode for the
'@'(at sign) keyB = 98The Keycode for the
'b'key; analogous to the B keyBackslash = 92The Keycode for the
'\'(back slash) keyBackspace = 8The Keycode for the
'\b'(back space) key; analogous to the ⌫ (back space) keyC = 99The Keycode for the
'c'key; analogous to the C keyCall = 1073742113The Keycode for the 📞 (phone call) key on mobiles
Cancel = 1073741979CapsLock = 1073741881The Keycode for the ⇪ (caps lock) key
Caret = 94The Keycode for the
'^'(caret / accent circumflex) keyChannelDecrement = 1073742085ChannelIncrement = 1073742084Clear = 1073741980ClearAgain = 1073741986Colon = 58The Keycode for the
':'(colon) keyComma = 44The Keycode for the
','(comma) keyCopy = 1073741948The Keycode for the COPY (copy) key
CrSel = 1073741987CurrencySubunit = 1073742005CurrencyUnit = 1073742004Cut = 1073741947The Keycode for the CUT (cut) key
D = 100The Keycode for the
'd'key; analogous to the D keyDecimalSeparator = 1073742003Delete = 127The Keycode for the
'\x7F'(delete) keyDollar = 36The Keycode for the
'$'(percent sign) keyDoubleApostrophe = 34The Keycode for the
'"'(double apostrophe) keyDown = 1073741905The Keycode for the ↓ (down arrow) key
E = 101The Keycode for the
'e'key; analogous to the E keyEnd = 1073741901The Keycode for the END (end) key
EndCall = 1073742114The Keycode for the END 📞 (end phone call) key on mobiles
Equals = 61The Keycode for the
'='(equal sign) keyEscape = 27The Keycode for the
'\e'(escape) key; analogous to the ESC (escape) keyExSel = 1073741988ExclamationMark = 33The Keycode for the
'!'(exclamation mark) keyExecute = 1073741940The Keycode for the EXECUTE (execute) key
F = 102The Keycode for the
'f'key; analogous to the F keyF1 = 1073741882The Keycode for the F1 key
F10 = 1073741891The Keycode for the F10 key
F11 = 1073741892The Keycode for the F11 key
F12 = 1073741893The Keycode for the F12 key
F13 = 1073741928The Keycode for the F13 key
F14 = 1073741929The Keycode for the F14 key
F15 = 1073741930The Keycode for the F15 key
F16 = 1073741931The Keycode for the F16 key
F17 = 1073741932The Keycode for the F17 key
F18 = 1073741933The Keycode for the F18 key
F19 = 1073741934The Keycode for the F19 key
F2 = 1073741883The Keycode for the F2 key
F20 = 1073741935The Keycode for the F20 key
F21 = 1073741936The Keycode for the F21 key
F22 = 1073741937The Keycode for the F22 key
F23 = 1073741938The Keycode for the F23 key
F24 = 1073741939The Keycode for the F24 key
F3 = 1073741884The Keycode for the F3 key
F4 = 1073741885The Keycode for the F4 key
F5 = 1073741886The Keycode for the F5 key
F6 = 1073741887The Keycode for the F6 key
F7 = 1073741888The Keycode for the F7 key
F8 = 1073741889The Keycode for the F8 key
F9 = 1073741890The Keycode for the F9 key
Find = 1073741950The Keycode for the 🔍 (find) key
G = 103The Keycode for the
'g'key; analogous to the G keyGrave = 96The Keycode for the
'`'(accent grave) keyGreater = 62The Keycode for the
'>'(greater than sign) keyH = 104The Keycode for the
'h'key; analogous to the H keyHash = 35The Keycode for the
'#'(hash sign) keyHelp = 1073741941The Keycode for the HELP (help) key
Home = 1073741898The Keycode for the HOME (home) key
I = 105The Keycode for the
'i'key; analogous to the I keyInsert = 1073741897The Keycode for the INSERT (insert) key
J = 106The Keycode for the
'j'key; analogous to the J keyK = 107The Keycode for the
'k'key; analogous to the K keyKeypad0 = 1073741922The Keycode for the 0 key on the keypad
Keypad00 = 1073742000Keypad000 = 1073742001Keypad1 = 1073741913The Keycode for the 1 key on the keypad
Keypad2 = 1073741914The Keycode for the 2 key on the keypad
Keypad3 = 1073741915The Keycode for the 3 key on the keypad
Keypad4 = 1073741916The Keycode for the 4 key on the keypad
Keypad5 = 1073741917The Keycode for the 5 key on the keypad
Keypad6 = 1073741918The Keycode for the 6 key on the keypad
Keypad7 = 1073741919The Keycode for the 7 key on the keypad
Keypad8 = 1073741920The Keycode for the 8 key on the keypad
Keypad9 = 1073741921The Keycode for the 9 key on the keypad
KeypadA = 1073742012The Keycode for the A key on the keypad
KeypadAmpersand = 1073742023The Keycode for the & (and; sometimes
AND) key on the keypadKeypadAt = 1073742030The Keycode for the @ key on the keypad
KeypadB = 1073742013The Keycode for the B key on the keypad
KeypadBackspace = 1073742011The Keycode for the ⌫ (back space) key on the keypad
KeypadBinary = 1073742042KeypadC = 1073742014The Keycode for the C key on the keypad
KeypadClear = 1073742040The Keycode for the CLEAR (clear) key on the keypad
KeypadClearEntry = 1073742041KeypadColon = 1073742027The Keycode for the : key on the keypad
KeypadComma = 1073741957The Keycode for the , key on the keypad
KeypadD = 1073742015The Keycode for the D key on the keypad
KeypadDecimal = 1073742044KeypadDivide = 1073741908The Keycode for the / (divide) key on the keypad
KeypadDoubleAmpersand = 1073742024The Keycode for the && key on the keypad
KeypadDoubleVerticalBar = 1073742026The Keycode for the || key on the keypad
KeypadE = 1073742016The Keycode for the E key on the keypad
KeypadEnter = 1073741912The Keycode for the ⏎ (return / enter) key on the keypad
KeypadEquals = 1073741927The Keycode for the = key
KeypadEqualsAS400 = 1073741958The Keycode for the = AS400 key on the keypad
KeypadExclamationMark = 1073742031The Keycode for the ! key on the keypad
KeypadF = 1073742017The Keycode for the F key on the keypad
KeypadGreater = 1073742022The Keycode for the > key on the keypad
KeypadHash = 1073742028The Keycode for the # key on the keypad
KeypadHexadecimal = 1073742045KeypadLeftBrace = 1073742008The Keycode for the { key on the keypad
KeypadLeftParenthesis = 1073742006The Keycode for the ( key on the keypad
KeypadLess = 1073742021The Keycode for the < key on the keypad
KeypadMemAdd = 1073742035The Keycode for the MEM + (mem add) key on the keypad
KeypadMemClear = 1073742034The Keycode for the MEM CLEAR (mem clear) key on the keypad
KeypadMemDivide = 1073742038The Keycode for the MEM / (mem divide) key on the keypad
KeypadMemMultiply = 1073742037The Keycode for the MEM * (mem multiply) key on the keypad
KeypadMemRecall = 1073742033The Keycode for the MEM RECALL (mem recall) key on the keypad
KeypadMemStore = 1073742032The Keycode for the MEM STORE (mem store) key on the keypad
KeypadMemSubtract = 1073742036The Keycode for the MEM - (mem subtract) key on the keypad
KeypadMinus = 1073741910The Keycode for the - (minus) key on the keypad
KeypadMultiply = 1073741909The Keycode for the * (multiply) key on the keypad
KeypadOctal = 1073742043KeypadPercent = 1073742020The Keycode for the % key on the keypad
KeypadPeriod = 1073741923The Keycode for the . key on the keypad
KeypadPlus = 1073741911The Keycode for the + (divide) key on the keypad
KeypadPlusMinus = 1073742039The Keycode for the ± (plus-minus) key on the keypad
KeypadPower = 1073742019The Keycode for the xʸ (power / exponentiation; sometimes
^) key on the keypadKeypadRightBrace = 1073742009The Keycode for the } key on the keypad
KeypadRightParenthesis = 1073742007The Keycode for the ) key on the keypad
KeypadSpace = 1073742029The Keycode for the ⎵ (space) key on the keypad
KeypadTab = 1073742010The Keycode for the ⭾ (tab) key on the keypad
KeypadVerticalBar = 1073742025The Keycode for the | (or; sometimes
OR) key on the keypadKeypadXor = 1073742018The Keycode for the XOR (xor; sometimes
^) key on the keypadL = 108The Keycode for the
'l'key; analogous to the L keyLeft = 1073741904The Keycode for the ← (left arrow) key
LeftAlt = 1073742050The Keycode for the left ALT (left alt) key
LeftBrace = 123The Keycode for the
'{'(left brace) keyLeftBracket = 91The Keycode for the
'['(left bracket) keyLeftControl = 1073742048The Keycode for the left CTRL (left control) key
LeftGui = 1073742051The Keycode for the left ⊞ (left Windows) key on PCs, left ⌘ (left command) key on Macs, or sometimes called left meta key
LeftHyper = 536870918The Keycode for the "Left Hyper" key
LeftMeta = 536870916The Keycode for the "Left Meta" key
LeftParenthesis = 40The Keycode for the
'('(left parenthesis) keyLeftShift = 1073742049The Keycode for the left ⇧ (left shift) key
LeftTab = 536870913The Keycode for the "Left Tab" key
Less = 60The Keycode for the
'<'(less than sign) keyLevel5Shift = 536870914The Keycode for the "Level 5 Shift" key
M = 109The Keycode for the
'm'key; analogous to the M keyMediaEject = 1073742094The Keycode for the ⏏ (media eject) key
MediaFastForward = 1073742089The Keycode for the ⏩ (media fast forward) key
MediaNextTrack = 1073742091The Keycode for the ⏭ (media next track) key
MediaPause = 1073742087The Keycode for the ⏸ (media pause) key
MediaPlay = 1073742086The Keycode for the ⏵ (media play) key
MediaPlayPause = 1073742095The Keycode for the ⏯ (play-pause eject) key
MediaPreviousTrack = 1073742092The Keycode for the ⏮ (media previous track) key
MediaRecord = 1073742088The Keycode for the ⏺ (media record) key
MediaRewind = 1073742090The Keycode for the ⏪ (media rewind) key
MediaSelect = 1073742096MediaStop = 1073742093The Keycode for the ⏹ (media stop) key
Menu = 1073741942The Keycode for the ☰ (menu / show menu) key
Minus = 45The Keycode for the
'-'(minus sign) keyMode = 1073742081MultiKeyCompose = 536870915The Keycode for the "Level 5 Shift" key
Mute = 1073741951The Keycode for the 🔇 (mute volume) key
N = 110The Keycode for the
'n'key; analogous to the N keyNumLockOrClear = 1073741907The Keycode for the NUM (num lock) key on PCs, or the CLEAR (clear) key on Macs
O = 111The Keycode for the
'o'key; analogous to the O keyOper = 1073741985Out = 1073741984P = 112The Keycode for the
'p'key; analogous to the P keyPageDown = 1073741902The Keycode for the PAGE DOWN (page down) key
PageUp = 1073741899The Keycode for the PAGE UP (page up) key
Paste = 1073741949The Keycode for the PASTE (paste) key
Pause = 1073741896The Keycode for the PAUSE (pause / break) key
Percent = 37The Keycode for the
'%'(percent sign) keyPeriod = 46The Keycode for the
'.'(period) keyPipe = 124The Keycode for the
'|'(pipe / vertical bar) keyPlus = 43The Keycode for the
'+'(plus sign) keyPlusMinus = 177The Keycode for the
'±'(plus-minus sign) key[Experimental("SDL5010")] Power = 1073741926The Keycode that might be for the POWER (power) key on some Mac keyboards
Do not rely on this, as the USB document says that this is a status flag instead of a physical key.
PrintScreen = 1073741894The Keycode for the PRINT SCREEN (print screen) key
Prior = 1073741981Q = 113The Keycode for the
'q'key; analogous to the Q keyQuestionMark = 63The Keycode for the
'?'(question mark) keyR = 114The Keycode for the
'r'key; analogous to the R keyReturn = 13The Keycode for the
'\r'(return) key; analogous to the ⏎ (return / enter) keyReturn2 = 1073741982Right = 1073741903The Keycode for the → (right arrow) key
RightAlt = 1073742054The Keycode for the right ALT (right alt) key, or sometimes called ALT GR (alt gr.) key
RightBrace = 125The Keycode for the
'}'(right brace) keyRightBracket = 93The Keycode for the
']'(right bracket) keyRightControl = 1073742052The Keycode for the right CTRL (right control) key
RightGui = 1073742055The Keycode for the right ⊞ (right Windows) key on PCs, right ⌘ (right command) key on Macs, or sometimes called right meta key
RightHyper = 536870919The Keycode for the "Right Hyper" key
RightMeta = 536870917The Keycode for the "Right Meta" key
RightParenthesis = 41The Keycode for the
')'(right parenthesis) keyRightShift = 1073742053The Keycode for the right ⇧ (right shift) key
S = 115The Keycode for the
's'key; analogous to the S keyScrollLock = 1073741895The Keycode for the SCROLL (scroll lock) key
Select = 1073741943The Keycode for the SELECT (select) key
Semicolon = 59The Keycode for the
';'(semicolon) keySeparator = 1073741983Slash = 47The Keycode for the
'/'(slash) keySleep = 1073742082SoftwareLeft = 1073742111The Keycode for left software defined key on mobiles
This key is usually situated below the display on phones and used as a multi-function feature key for selecting a software defined function shown on the bottom left of the display.
SoftwareRight = 1073742112The Keycode for right software defined key on mobiles
This key is usually situated below the display on phones and used as a multi-function feature key for selecting a software defined function shown on the bottom right of the display.
Space = 32The Keycode for the
' '(space) key; analogous to the ⎵ (space) keyStop = 1073741944The Keycode for the STOP (stop) key
SysReq = 1073741978T = 116The Keycode for the
't'key; analogous to the T keyTab = 9The Keycode for the
'\t'(tab) key; analogous to the ⭾ (tab) keyThousandsSeparator = 1073742002Tilde = 126The Keycode for the
'~'(tilde) keyU = 117The Keycode for the
'u'key; analogous to the U keyUnderscore = 95The Keycode for the
'_'(underscore) keyUndo = 1073741946The Keycode for the UNDO (undo) key
Unknown = 0A representative for an unknown Keycode
Up = 1073741906The Keycode for the ↑ (up arrow) key
V = 118The Keycode for the
'v'key; analogous to the V keyVolumeDown = 1073741953The Keycode for the 🔉 (volume down) key
VolumeUp = 1073741952The Keycode for the 🔊 (volume up) key
W = 119The Keycode for the
'w'key; analogous to the W keyWake = 1073742083X = 120The Keycode for the
'x'key; analogous to the X keyY = 121The Keycode for the
'y'key; analogous to the Y keyZ = 122The Keycode for the
'z'key; analogous to the Z key_0 = 48The Keycode for the
'0'key; analogous to the 0 key_1 = 49The Keycode for the
'1'key; analogous to the 1 key_2 = 50The Keycode for the
'2'key; analogous to the 2 key_3 = 51The Keycode for the
'3'key; analogous to the 3 key_4 = 52The Keycode for the
'4'key; analogous to the 4 key_5 = 53The Keycode for the
'5'key; analogous to the 5 key_6 = 54The Keycode for the
'6'key; analogous to the 6 key_7 = 55The Keycode for the
'7'key; analogous to the 7 key_8 = 56The Keycode for the
'8'key; analogous to the 8 key_9 = 57The Keycode for the
'9'key; analogous to the 9 key
Remarks
This represents a virtual key, which is different to a keyboard scancode.