Build a unified input layer for TV remotes and gamepads. Use when normalizing key codes, long-press, repeat behavior, and Back/Menu semantics across Samsung, LG, Hisense, Xbox, and PS5 environments.
Normalize heterogeneous platform key events into one app-level action contract. Treat platform keycodes as adapter concerns, not feature code concerns.
Expose canonical actions:
NAV_UP, NAV_DOWN, NAV_LEFT, NAV_RIGHTSELECT, BACK, MENU, PLAY_PAUSESEEK_FWD, SEEK_BACK, PAGE_UP, PAGE_DOWNremote, gamepad, keyboard) for telemetry.references/keymap-matrix.md as the baseline mapping matrix.