# editor.key

> Talos next · Since next

A key down and up, or one half with "down".

winit code spellings: KeyW, Digit1, F5, Escape, Space, Enter, Tab, ArrowUp, ShiftLeft.

| | |
|---|---|
| Title | Press a key |
| Mode | `editor` |
| Token cost | about 112 tokens (listed only when its toolset is enabled) |
| Toolset | `editor` |

## Arguments

| Argument | Type | Required | Default | Allowed values | Description |
|---|---|---|---|---|---|
| `code` | `string` | yes |  |  | KeyW, F5, Escape, Space, … |
| `down` | `boolean` | no |  |  | Only this half; both halves when absent |

## Example

An MCP `tools/call` with the required arguments (placeholders in angle brackets).

```json
{
  "name": "editor.key",
  "arguments": {
    "code": "<code>"
  }
}
```
