Overview
Thepress command sends keyboard shortcuts to applications using a simple, readable syntax for key combinations.
Syntax
Key combinations use+ to join modifiers and keys:
Modifiers
cmd- Command key (macOS) / Super key (Linux)ctrl- Control keyshift- Shift keyalt/option- Alt/Option key
Single Keys
Common keys can be referenced by name:return/enterescape/esctabspacedelete/backspaceup,down,left,right(arrow keys)home,end,pageup,pagedown- Function keys:
f1,f2, …f12
a, b, 1, 2, etc.
Examples
Single Key
Single Modifier + Key
Multiple Modifiers
Application-Targeted Shortcuts
Focus an app before sending the shortcut:Common Shortcuts by Function
File Operations
Editing
Navigation
Browser
Advanced Usage
Hold and Release Keys
For precise control over key timing, usekey-down and key-up: