Send key
adb_keySend key events like HOME, BACK, or DPAD to Android TV boxes, phones, or watches over ADB; optionally verify activity/UI to confirm the key took effect.
Instructions
Send a keyevent. Accepts names (HOME, BACK, ENTER, DPAD_UP, POWER, VOLUME_UP, MENU, TAB...) or numeric codes. On TV boxes DPAD_UP/DOWN/LEFT/RIGHT move the focus and DPAD_CENTER presses it. verify="activity"|"ui" reports whether the key changed anything; see adb_tap for the same parameter. For text use adb_text; for a labelled element, adb_find_and_tap.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | Key name (HOME, BACK, ENTER, DPAD_CENTER, WAKEUP...; the KEYCODE_ prefix is optional) or a numeric keycode. | |
| serial | No | Device serial from adb_devices. Optional when exactly one device is connected. | |
| verify | No | Default "none". See adb_tap. |