Press key
key_pressPress hardware or navigation keys like BACK, HOME, ENTER, or any KEYCODE on an Android device, enabling UI automation and testing.
Instructions
Press a hardware/navigation key: BACK, HOME, ENTER, TAB, DELETE, ESCAPE, MENU, APP_SWITCH, DPAD_*, or any KEYCODE_ name.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | Key name | |
| serial | No | Device serial (defaults to session or the only device) |