Skip to content
Version 2.11.0
↓ Get the launcher

StellarKeyCode enumeration

Subset of UnityEngine.KeyCode values. Integer values match UnityEngine.KeyCode exactly so Infrastructure can cast in either direction. Abstractions cannot reference UnityEngine, so this mirror lives in plain BCL.

public enum StellarKeyCode
name value description
None 0 No key / unbound.
Backspace 8 Backspace key.
Tab 9 Tab key.
Return 13 Return / Enter key.
Escape 27 Escape key.
Space 32 Space bar.
Delete 127 Delete (forward-delete) key.
BackQuote 96 Back-quote / grave accent key (`)
Alpha0 48 Top-row digit 0.
Alpha1 49 Top-row digit 1.
Alpha2 50 Top-row digit 2.
Alpha3 51 Top-row digit 3.
Alpha4 52 Top-row digit 4.
Alpha5 53 Top-row digit 5.
Alpha6 54 Top-row digit 6.
Alpha7 55 Top-row digit 7.
Alpha8 56 Top-row digit 8.
Alpha9 57 Top-row digit 9.
A 97 Letter A.
B 98 Letter B.
C 99 Letter C.
D 100 Letter D.
E 101 Letter E.
F 102 Letter F.
G 103 Letter G.
H 104 Letter H.
I 105 Letter I.
J 106 Letter J.
K 107 Letter K.
L 108 Letter L.
M 109 Letter M.
N 110 Letter N.
O 111 Letter O.
P 112 Letter P.
Q 113 Letter Q.
R 114 Letter R.
S 115 Letter S.
T 116 Letter T.
U 117 Letter U.
V 118 Letter V.
W 119 Letter W.
X 120 Letter X.
Y 121 Letter Y.
Z 122 Letter Z.
UpArrow 273 Up arrow key.
DownArrow 274 Down arrow key.
RightArrow 275 Right arrow key.
LeftArrow 276 Left arrow key.
Insert 277 Insert key.
Home 278 Home key.
End 279 End key.
PageUp 280 Page Up key.
PageDown 281 Page Down key.
F1 282 F1 function key.
F2 283 F2 function key.
F3 284 F3 function key.
F4 285 F4 function key.
F5 286 F5 function key.
F6 287 F6 function key.
F7 288 F7 function key.
F8 289 F8 function key.
F9 290 F9 function key.
F10 291 F10 function key.
F11 292 F11 function key.
F12 293 F12 function key.
F13 294 F13 function key.
F14 295 F14 function key.
F15 296 F15 function key.
Keypad0 256 Numpad 0.
Keypad1 257 Numpad 1.
Keypad2 258 Numpad 2.
Keypad3 259 Numpad 3.
Keypad4 260 Numpad 4.
Keypad5 261 Numpad 5.
Keypad6 262 Numpad 6.
Keypad7 263 Numpad 7.
Keypad8 264 Numpad 8.
Keypad9 265 Numpad 9.
KeypadPeriod 266 Numpad decimal point.
KeypadDivide 267 Numpad divide (/).
KeypadMultiply 268 Numpad multiply (*).
KeypadMinus 269 Numpad minus (-).
KeypadPlus 270 Numpad plus (+).
KeypadEnter 271 Numpad Enter key.