DocsKeyboardKey Hold/Release

Hold and release a key in RunMacro

Desktop ModeBrowser ModeRunMacro 3.5+

The Key Hold command lets you hold (Down) or release (Up) a single key — unlike Key Press which taps at once.

Dialog & quick setup

RunMacro Key Hold/Release command configuration dialog showing parameter fields
Configuration dialog and parameter fields for the Key Hold/Release command in RunMacro.
  1. Add a Keyboard › Key Hold command.
  2. Choose the key and the action: Hold (Down) or Release (Up).
  3. To hold for X seconds: Hold → Wait → Release.
  4. Save.

Options reference

Key

The key to hold or release.

Action (Hold / Release)

Hold (Down) presses and keeps the key down; Release (Up) lets it go.

Modes & when to use

Desktop Mode
Browser Mode

Runs in the background through Chrome CDP: keyDown/keyUp events are dispatched into the page instead of the system keyboard.

Best for

  • Hold W/A/S/D to keep moving in a game.
  • Hold Shift to select multiple items.
  • Hold Ctrl while doing other actions.

Use an alternative when

  • Do not use it if execution may stop between Down and Up or only a quick tap is needed.
Before you run
  • Add Key Hold/Release to the macro.
  • Prepare the data or target that Key Hold/Release will use.

Example workflow

Example: hold W to run for 3 seconds in a game

  1. Key Hold: key W, action Hold.
  2. Add a Wait of 3000ms.
  3. Key Hold: key W, action Release.
Expected result: After execution, Key Hold/Release completes the described action and makes its result available to the next step.

Tips & limitations

Always pair each Hold with a Release, otherwise the key stays stuck down.
  • Unbalanced Down and Up events can leave a key held; the OS or application can intercept some keys.

Applies to RunMacro 3.5+ · Desktop Mode & Browser Mode · Windows 10/11

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.