ZeptapDocs
Commands

key

Press a key on the iPhone's Bluetooth keyboard, optionally with modifiers or repeated.

Usage

zeptap key <name> [--mod cmd,shift,ctrl,alt] [--repeat <n>]
zeptap key cmd+a

press is an alias.

Options

OptionDescription
<name>enter, escape, backspace, tab, space, arrow_up, arrow_down, arrow_left, arrow_right, a, c, v, x or z
--mod <list>Modifiers, comma-separated: cmd, shift, ctrl, alt
--repeat <n>Press it this many times (default 1)

Also takes the global options.

Details

  • Aliases: return for enter, esc for escape, delete for backspace, and up, down, left, right for the arrows. command, control, opt and option work as modifiers.
  • cmd+a style works too: everything before the last + is a modifier.
  • a, c, v, x and z exist for the shortcuts: select all, copy, paste, cut and undo.

Examples

$ zeptap key -l 7 enter
$ zeptap key -l 7 backspace --repeat 12
$ zeptap key -l 7 cmd+a
$ zeptap key -l 7 v --mod cmd

MCP tool

press_key.

On this page