Press a PC key with explicit modifiers
gma3_keyboardSimulate raw PC key taps, presses, and releases in grandMA3 onPC with explicit Shift, Ctrl, Alt, and Num Lock modifiers via its Keyboard emulation.
Instructions
Press, release or tap a raw PC key (case-sensitive Enums.KeyboardCodes name: Enter, Escape, F1, 5, A, LeftShift ...) with shift/ctrl/alt/numlock passed explicitly on the press AND the release, through the console's Keyboard() emulation. What the key does depends on the operator's user profile, keyboard shortcut enablement and the focused UI element (a mapped key may edit a focused field instead of acting as a hardkey); nothing is substituted or resolved for you, prefer gma3_hardkey for MA keys. tap returns after the release was attempted; press REQUIRES an interaction id; release uses the stored press tuple. Same gate, ownership, busy and verification rules as gma3_hardkey: real keys, input OFF until the operator runs Plugin "gma3_mcp_bridge" "input=keyboard", not display-scoped, commands from every client are [busy] while a key is held, UI effect unverified, nothing retried or replayed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| alt | No | PC modifier passed explicitly on the press and the release (one event with the flag; no modifier key is pressed separately). Only with pc_key. | |
| ctrl | No | PC modifier passed explicitly on the press and the release (one event with the flag; no modifier key is pressed separately). Only with pc_key. | |
| shift | No | PC modifier passed explicitly on the press and the release (one event with the flag; no modifier key is pressed separately). Only with pc_key. | |
| action | Yes | ||
| pc_key | Yes | Case-sensitive Enums.KeyboardCodes name as the console spells it (Enter, Escape, LeftShift, F1, 5, A). Validated on the console before dispatch. | |
| display | No | Display index passed to the console as API context only. It must exist; input is NOT display-scoped on onPC 2.5.1 (no routing, focus or pop-up placement is promised). | |
| hold_ms | No | tap only (default 50). | |
| numlock | No | Numlock flag passed explicitly on both events. Only with pc_key. | |
| exclusive | No | The intended long-press (see gma3_hardkey). | |
| interaction | No | Id from gma3_input_interaction acquire. Required for a standalone hold (press). A bounded tap, chord tap, text or sequence may run without one (it owns an interaction for its duration) but must pass the id while this server has one open. |