key_event
Send any Android keycode (e.g., KEYCODE_ESCAPE or 66) to control keys not covered by press_button. Specify the keycode and optional device serial to trigger the input.
Instructions
Send any Android keycode (e.g. KEYCODE_ESCAPE, 66) — for keys not covered by press_button
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| serial | No | Device serial (e.g. emulator-5554). Optional when exactly one device is connected. | |
| keycode | Yes |