Send Remote Key
keypressSend a single remote key command to a Roku device to navigate menus and control playback, mirroring a physical remote press for UI advancement.
Instructions
Send one ECP remote key (e.g. "Home", "Up", "Select", "Play") to a Roku device — mirrors a physical remote press. Mutates on-screen state: each key advances the UI, so repeated calls are NOT a no-op. Use keypress for navigation/transport keys; to type characters into a focused text field use input_text (far faster than sending "Lit_" keys one at a time).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | ECP key name. See list_keypress_options for the full set. | |
| device | No | Target device — IP (e.g. "192.168.1.137") or serial (e.g. "X0004EX9Q7M"). Omit to use the focused device. |