Send a keyevent on the device
android.input.keyeventSend keycode events to Android devices for remote control, using scrcpy protocol when available or ADB as fallback. Simulate actions like HOME, BACK, VOLUME, POWER, and ENTER.
Instructions
Sends a keycode event. Uses fast scrcpy control protocol when stream is active, otherwise falls back to adb shell input keyevent. Common keycodes: HOME=3, BACK=4, VOLUME_UP=24, VOLUME_DOWN=25, POWER=26, ENTER=66, DELETE=67.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| serial | Yes | ||
| keycode | Yes |