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.

Docs Keyboard Key Press
🔡 Keyboard

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#

RunMacro Key Press command configuration dialog showing parameter fields
Configuration dialog and parameter fields for the Key Press command in RunMacro.

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#

  1. Add a Keyboard › Key Press command.
  2. Choose the key from the list (Enter, Tab, Esc, F1–F12, arrows...).
  3. Save. On run, the key is sent to the active window.

Every option explained#

Key#

The key to press. The list covers letters, numbers, function keys, and navigation keys.

Expected result#

RunMacro sends one press-and-release key event to the active target.

Real example#

Example: tab between fields then confirm#

  1. Type Text into the first field.
  2. Key Press Tab to move to the next field.
  3. 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
RunMacro robot

Robots do the work. Your time is yours.

Create a robot in minutes, no coding needed. Reliable execution, remote management, transparent costs — and you always stay in control.