Skip to content

Keyboard Input

ClicKey represents keyboard input in two main forms: Key Press (a single key, optionally with modifiers, like a shortcut) and Characters (a string of text to type). When you record, the two are picked automatically based on what you typed. When you build by hand, you choose.

In the + Add Action menu, both live under Keyboard & Mouse:

  • Key Press – “Send a key or shortcut”.
  • Characters – “Type a string of text”.

A recorded macro will normally show Characters rows for typing and Key Press rows for shortcuts like ⌘C, ⌘V, Tab, Return.

Behind the scenes, every keyboard event is ultimately a Key Down and Key Up pair, which is what gets sent to macOS. You can see and edit individual Key Down / Key Up actions too when you need finer control – for example, holding ⇧ across multiple other key presses.

  1. Click + Add Action → Key Press.
  2. Press the key or shortcut you want. It captures single keys (A, Return, F5, Arrow Up, …) and full shortcuts (e.g. ⌘C, ⌘⌥7), shown with the modifier symbols.
  3. Use the modifier chips (⌘ ⌥ ⌃ ⇧) under the field to add or remove modifiers by hand.
  4. A Key Press normally appears as one action. To put other actions between pressing and releasing the key, tick Show “Key Down” and “Key Up” as separate actions at the bottom of the editor – the key press is then split into a separate Key Down and Key Up action.
  • App and menu shortcuts like ⌘C, ⌘A, ⌘V are captured by simply pressing them in the field.
  • System shortcuts macOS reserves – such as ⌘Space (Spotlight) or ⌘Tab – never reach the app, so they can’t be captured by pressing. Instead press the base key (e.g. Space) and toggle ⌘ with the chips.
  1. Click + Add Action → Characters.
  2. Type the string you want the macro to type when it reaches this step.
  3. (Optional) In Text mode, use {variableName} in the string to insert a variable’s value; everything else is typed literally. Switch to Expression mode to build the string with JavaScript. See Variables and Expressions.
  4. Save. The row shows the string.
OptionWhat it doesDefault
KeyThe key to send, captured by pressing it in the field. Letters, numbers, function keys, arrows, Return, Tab, Escape, Delete, and special keys.–
Modifiers (⌘ ⌥ ⌃ ⇧)Held with the key to form a shortcut. Set by pressing a shortcut, tapping a modifier key, or toggling the chips.None
Show “Key Down” and “Key Up” as separate actions (to put actions in between)Splits the key press into a separate Key Down and Key Up action, so you can place other actions in between – for example, hold ⇧ while several clicks run.Off

The Characters editor has three source modes – pick one with the segmented picker at the top of the sheet.

ModeWhat it does
TextTyped as written, with each {name} replaced by that variable’s value. Anything that isn’t a plain variable name – a literal +, punctuation, or braces around non-variables like {"key":1} – is typed exactly as-is. See Text mode vs Expression mode.
ExpressionJavaScript string expression evaluated at playback time, e.g. "Hi " + {name}. Use this to combine pieces with + or transform values.
From listPicks one item from a string list variable and types it. See below.
OptionWhat it doesDefault
Fast Playback TypingTypes the resolved characters at maximum speed regardless of run speed. Vollgas (Max Speed) in the Run Settings implicitly enables this.Off

Characters fires one key event per character, with the appropriate Unicode handling for non-ASCII characters. macOS layout (US, German, Dvorak, etc.) is respected at the receiving end – characters arrive at the focused field as the system would render them.

Picks one item from a list variable and types it. Use this when you have a pool of values – customer codes, test emails, sample answers, randomized phrases – and you want each run to grab one without writing an expression yourself.

OptionWhat it doesDefault
List variableThe list to pick from. Only string lists are eligible – number lists are not shown.First eligible list
ModeHow to pick. Random, First item, Last item, or At index… (0-based; expression allowed, e.g. {i} or 0).Random
Remove from list (only in playback, it stays in your Macro)After picking, the chosen item is removed from the runtime copy of the list, so the next reference picks a different item. The saved Macro file is not modified. Useful for consuming a list across iterations of a loop in one run.Off

If the list is empty when the action runs, playback stops with an error. The same applies to an out-of-bounds index in At index… mode.

  • Modifier keys are sticky in macOS in a way recordings reflect. A pressed modifier stays held until its Key Up runs – that’s why recorded macros work, but it also means a runaway macro that pressed a modifier and never released it can leave macOS in an odd state until you press the key yourself.
  • Characters cannot type system shortcuts. Use Key Press for that. Characters is for text, not for commands.
  • Recording groups characters that arrive close together into one Characters row for readability.
  • A Key Press needs a key to save. With Show “Key Down” and “Key Up” as separate actions ticked, a modifier on its own is enough (e.g. a tap of ⌘) – that’s how you create a held modifier.
  • Mouse Input – clicks, moves, drags, scrolls.
  • Wait – pause between actions, often used between keyboard steps.
  • Variables and Expressions – substituting values into Characters strings.
  • Set Variable – the same From list picker, used to populate variables; complements the Characters version.
  • What Gets Captured – how recording produces keyboard rows.
  • Keyboard Shortcuts – the app’s own keyboard shortcuts (not the same as keyboard actions).