How to automate keystrokes

Any keystroke or combination of keystrokes can be automated. We do this by recording the keystrokes using our "Press key(s)" step.

# Automate keystrokes with Press key(s) step


To automate keystrokes, use the Step Finder to search for "Press key(s)" and then add the "Press key(s)" step.

How
  1. Click "Record".
  2. Press the combination or key you wish to be recorded.
  3. Finally click "Stop recording".

Check out this guide for some examples of keystrokes being automated.

# Automate keystrokes with Javascript


If you are familiar with JavaScript or perhaps using ChatGPT to generate code, you can use our JavaScript step to simulate pressing keys. It's important to note that, for security reasons, this is limited to the current web page.