key_down
Hold down a key on the BBC Micro emulator by injecting a raw keydown event. Use with key_up to release; for quick taps, use type_input instead.
Instructions
Inject a raw BBC keydown event into the matrix.
key is either a symbolic name ("A", "CAPS_LOCK",
"LEFT_ARROW", ...) or an integer key code. Single-character
ASCII strings ("A") are accepted and treated as the
corresponding matrix position; everything longer goes through
SPECIAL_KEYS. The press stays held until a matching
key_up; callers that want a tap should use type_input
instead, which handles the HOLD/GAP timing.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | ||
| session_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||