pressKey
Press keyboard keys on the focused page or element to submit forms, close dialogs, navigate with Tab/Arrow keys, and execute shortcuts like Ctrl+A.
Instructions
Press keyboard key on focused element or page. For form submission (Enter), closing dialogs (Escape), navigation (Tab, Arrow keys), shortcuts (Ctrl+A).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | APOM element ID to focus before pressing. Optional. | |
| key | Yes | Key to press: 'Enter', 'Escape', 'Tab', 'ArrowUp', 'ArrowDown', 'ArrowLeft', 'ArrowRight', 'Backspace', 'Delete', 'Home', 'End', 'PageUp', 'PageDown', 'Space' | |
| selector | No | CSS selector to focus before pressing. Optional. | |
| modifiers | No | Modifier keys to hold while pressing (e.g., ['Control'] for Ctrl+key) |