Skip to content
ProMacTools

Mac Keyboard & Automation: Auto Key Press, Stay Awake, Macros

Make your Mac press keys for you, stay awake and repeat the boring parts.

Which tool for which job

You want to…Use
Press a key repeatedly in an appAutoKey
Keep a remote desktop or Windows App session aliveAutoKey, sending a harmless key
Stop the Mac from sleepingcaffeinate -d in Terminal, or a keep-awake menu bar app
Run a multi-step workflowShortcuts or Automator
Remap keysSystem Settings › Keyboard › Modifier Keys; Karabiner-Elements for more
Record and replay mouse and keyboardNo good built-in option — vote for a macro recorder

Why automation apps need Accessibility permission

macOS blocks apps from sending keystrokes or clicks to other apps unless you allow them in System Settings › Privacy & Security › Accessibility. This protects you from malware typing on your behalf. Grant it only to apps you trust, and remove it when you stop using them.

AutoKey app icon

AutoKey

An automatic key presser that works in any app, even in the background.

$7.99 one-time

Learn more
Which Mac app should we build next?Vote for an idea or suggest your own.

Frequently asked questions

How do I make my Mac press a key automatically?

Install an auto key presser such as AutoKey, choose the key and the interval, pick the target app and start. macOS asks once for Accessibility permission.

How do I keep my Mac from going idle?

Run caffeinate -d in Terminal to keep the display awake, or use AutoKey to send a harmless key such as Shift every few minutes to apps that log you out when idle.

Is there AutoHotkey for Mac?

Not exactly. Hammerspoon and Keyboard Maestro cover scripting, Karabiner-Elements covers remapping, and AutoKey covers repeated key presses without scripts.

Get more Mac tips like this

Short, tested Mac tips, new guides and early-bird prices for new apps. About two emails a month.

About two emails a month. No spam, unsubscribe in one click. See our privacy policy.

Free trial Buy once