browser_press_key
Press keyboard keys like Enter, Tab, Escape to submit forms, navigate dropdowns, or close dialogs, with optional modifier keys (ctrl, alt, shift, meta).
Instructions
Press a keyboard key (Enter, Tab, Escape, ArrowDown, etc.). Useful for submitting forms, navigating dropdowns, closing dialogs. Supports modifier keys (ctrl, alt, shift, meta).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| alt | No | Hold Alt key | |
| key | Yes | Key to press: "Enter", "Tab", "Escape", "ArrowDown", "ArrowUp", "Backspace", "a", "1", etc. | |
| code | No | Key code (optional, defaults to key name). E.g. "KeyA" for "a" | |
| ctrl | No | Hold Ctrl/Cmd key | |
| meta | No | Hold Meta (Cmd on Mac) key | |
| shift | No | Hold Shift key |