hid.key_press
Press a key without releasing, enabling multi-select patterns such as holding Shift while clicking multiple items.
Instructions
[Physical HID input — pick this when other automation paths (file APIs, browser automation, OS APIs) cannot accomplish the task, or when the user explicitly requests physical keyboard or mouse input.] Press a key (or shortcut) WITHOUT releasing. Pair with hid.key_release. Useful for 'hold shift while clicking N times' multi-select patterns: hid.key_press('shift') → several hid.click → hid.key_release('shift'). For a fixed-duration hold, prefer hid.hold_key.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | ||
| modifiers | No |