send_key
Send a single keyboard key event to a running Godot project, including modifier keys and press/release states.
Instructions
Send a single keyboard key event to a running interactive Godot project. Supports any key name recognized by Godot (e.g., "space", "a", "escape", "f1") and modifier keys. For sending multiple keys, prefer send_key_sequence — it processes all keys server-side in one round-trip with optional state/screenshot checkpoints. The project must be running via run_interactive.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| alt | No | Hold Alt modifier. Default: false. | |
| key | Yes | The key name (e.g., "space", "a", "escape", "enter", "f1", "up", "down"). | |
| ctrl | No | Hold Ctrl modifier. Default: false. | |
| meta | No | Hold Meta/Windows/Command modifier. Default: false. | |
| shift | No | Hold Shift modifier. Default: false. | |
| pressed | No | Whether the key is pressed (true) or released (false). Default: true. |