Back to API Reference
Enum
NativeKeyCode
Platform-agnostic key codes for keys that trigger editing actions.
Remarks
This is intentionally NOT a full keyboard enum. It contains the navigation and editing keys plus the complete A–Z letter block, so any letter shortcut is bindable through
Resolve and custom key maps. The native platform layer maps OS-specific scan codes / virtual key codes to these values before delivering key-down events; bare unmodified letters are never delivered (they are text, not shortcuts — see IsLetter). The integer values are mirrored in the native plugin sources (iOS/macOS.mm, WebGL.jslib, Android.java) — append new keys at the end, never reorder.public static readonly NativeKeyCode A = 0public static readonly NativeKeyCode B = 1public static readonly NativeKeyCode C = 2public static readonly NativeKeyCode D = 3public static readonly NativeKeyCode E = 4public static readonly NativeKeyCode F = 5public static readonly NativeKeyCode H = 6public static readonly NativeKeyCode K = 7public static readonly NativeKeyCode N = 8public static readonly NativeKeyCode P = 9public static readonly NativeKeyCode T = 10public static readonly NativeKeyCode V = 11public static readonly NativeKeyCode X = 12public static readonly NativeKeyCode Y = 13public static readonly NativeKeyCode Z = 14public static readonly NativeKeyCode LeftArrow = 15public static readonly NativeKeyCode RightArrow = 16public static readonly NativeKeyCode UpArrow = 17public static readonly NativeKeyCode DownArrow = 18public static readonly NativeKeyCode Home = 19public static readonly NativeKeyCode End = 20public static readonly NativeKeyCode PageUp = 21public static readonly NativeKeyCode PageDown = 22public static readonly NativeKeyCode Backspace = 23public static readonly NativeKeyCode Delete = 24public static readonly NativeKeyCode Return = 25public static readonly NativeKeyCode KeypadEnter = 26public static readonly NativeKeyCode Tab = 27public static readonly NativeKeyCode Escape = 28public static readonly NativeKeyCode Insert = 29public static readonly NativeKeyCode None = 30No key — the unbound-shortcut sentinel. Never delivered by the platform layer.
public static readonly NativeKeyCode I = 31public static readonly NativeKeyCode U = 32public static readonly NativeKeyCode Backslash = 33The \ / | key (US layout; Windows VK_OEM_5).
public static readonly NativeKeyCode G = 34public static readonly NativeKeyCode J = 35public static readonly NativeKeyCode L = 36public static readonly NativeKeyCode M = 37public static readonly NativeKeyCode O = 38public static readonly NativeKeyCode Q = 39public static readonly NativeKeyCode R = 40public static readonly NativeKeyCode S = 41public static readonly NativeKeyCode W = 42