function normalizeKeyName(key): string;
Defined in: constants.ts:420
Normalizes a key name to its canonical form.
Converts various key name formats (aliases, case variations) into the standard canonical names used throughout the library. This enables a more forgiving API where users can write keys in different ways and still get correct behavior.
Normalization rules:
string
The key name to normalize (can be an alias, lowercase, etc.)
string
The canonical key name
normalizeKeyName('esc') // 'Escape'
normalizeKeyName('a') // 'A'
normalizeKeyName('f1') // 'F1'
normalizeKeyName('ArrowUp') // 'ArrowUp' (already canonical)