Press Key | Leapwork Docs

Press Key

The Press Key building block presses and holds a keyboard key (or key combination) until it is released. This is useful when you need to keep a modifier key pressed during another action, such as holding CTRL while dragging the mouse. The block is typically used together with the Release Key block.

See the Press and hold a key lesson for an example of how this works.

Fully expanded, the Press key block shows the following properties:

Quick-start

  1. Drag Press Key onto the canvas.
  2. Connect the block in the flow and optionally specify the basic parameters required for this block to operate: Keys (use Capture) and, if needed, Await no movement.
  3. Run the flow when it’s ready.

Building block parameters

Parameters

Resources

Topic Description
Flows FAQ Common questions about creating, running, and managing flows in Leapwork.
Flows Troubleshooting Guidelines and solutions for identifying and fixing issues that occur when building or running flows in Leapwork.