Send Android key
mobile_input_keySend Android key events to connected devices, specifying key, action type (press, long_press, double_tap), source, and duration. Works with gamepad, keyboard, or dpad sources.
Instructions
Send symbolic or numeric Android keys with gamepad source and capability-gated press options.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | ||
| action | No | press | |
| serial | Yes | Exact ADB serial from mobile_devices_list; never inferred when multiple devices exist | |
| source | No | gamepad | |
| displayId | Yes | Android framework logical display ID, not a SurfaceFlinger physical ID | |
| durationMs | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | ||
| device | Yes | ||
| backend | Yes | ||
| display | No | ||
| warnings | Yes | ||
| durationMs | Yes | ||
| operationId | Yes | ||
| schemaVersion | Yes |