Docs
RunMacro Documentation
Create your first robot, then go further as needed.
Clear step-by-step guides to create, run, and improve robots for repetitive computer work.
Press a single key automatically in RunMacro
The Key Press command sends exactly one key to the active app — for example Enter, Tab, Esc, arrows, or F1–F12.
Prerequisites#
- The target Desktop window or DOM element has focus.
- The selected key is supported by the target application.
- An active Chrome target and CDP driver can receive key events in Browser Mode.
Supported modes#
- Desktop Mode — Sends the key through WinAPI, with scan-code or keyboard-library fallback when needed.
- Browser Mode — Sends the key to the active Chrome target through CDP; the command fails without a driver.
What it does#
The Key Press command sends exactly one key to the active app — for example Enter, Tab, Esc, arrows, or F1–F12. It presses and releases at once, like tapping a key.
Screenshots & video#

When to use it#
- Press Enter to confirm or add a new line.
- Press Tab to jump to the next field in a form.
- Press Esc to close a dialog.
- Use arrow keys to move in a list/menu.
When not to use it#
- A key must stay held across steps; use Key Hold/Release.
- A modifier combination is required; use Key Combo.
- The focused element or window cannot be determined.
Configuration steps#
- Add a Keyboard › Key Press command.
- Choose the key from the list (Enter, Tab, Esc, F1–F12, arrows...).
- Save. On run, the key is sent to the active window.
Every option explained#
Expected result#
RunMacro sends one press-and-release key event to the active target.
Real example#
Example: tab between fields then confirm#
- Type Text into the first field.
- Key Press Tab to move to the next field.
- Type Text again, then Key Press Enter to submit.
Limitations and failure cases#
- System or application shortcuts may be blocked or handled differently.
- Keyboard layout affects character and symbol keys.
- Browser Mode cannot run after the CDP session disconnects.
Tips & common mistakes#
Need a combo like Ctrl+C or Alt+F4? Use the Key Combo command instead.
This command also works in Browser Mode (keys sent via Chrome/CDP).
Verification details#
commands/keyboard.py
