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 = 0
public static readonly NativeKeyCode B = 1
public static readonly NativeKeyCode C = 2
public static readonly NativeKeyCode D = 3
public static readonly NativeKeyCode E = 4
public static readonly NativeKeyCode F = 5
public static readonly NativeKeyCode H = 6
public static readonly NativeKeyCode K = 7
public static readonly NativeKeyCode N = 8
public static readonly NativeKeyCode P = 9
public static readonly NativeKeyCode T = 10
public static readonly NativeKeyCode V = 11
public static readonly NativeKeyCode X = 12
public static readonly NativeKeyCode Y = 13
public static readonly NativeKeyCode Z = 14
public static readonly NativeKeyCode LeftArrow = 15
public static readonly NativeKeyCode RightArrow = 16
public static readonly NativeKeyCode UpArrow = 17
public static readonly NativeKeyCode DownArrow = 18
public static readonly NativeKeyCode Home = 19
public static readonly NativeKeyCode End = 20
public static readonly NativeKeyCode PageUp = 21
public static readonly NativeKeyCode PageDown = 22
public static readonly NativeKeyCode Backspace = 23
public static readonly NativeKeyCode Delete = 24
public static readonly NativeKeyCode Return = 25
public static readonly NativeKeyCode KeypadEnter = 26
public static readonly NativeKeyCode Tab = 27
public static readonly NativeKeyCode Escape = 28
public static readonly NativeKeyCode Insert = 29
public static readonly NativeKeyCode None = 30

No key — the unbound-shortcut sentinel. Never delivered by the platform layer.

public static readonly NativeKeyCode I = 31
public static readonly NativeKeyCode U = 32
public static readonly NativeKeyCode Backslash = 33

The \ / | key (US layout; Windows VK_OEM_5).

public static readonly NativeKeyCode G = 34
public static readonly NativeKeyCode J = 35
public static readonly NativeKeyCode L = 36
public static readonly NativeKeyCode M = 37
public static readonly NativeKeyCode O = 38
public static readonly NativeKeyCode Q = 39
public static readonly NativeKeyCode R = 40
public static readonly NativeKeyCode S = 41
public static readonly NativeKeyCode W = 42