index

Karabiner-Elements

Customize any key on your keyboard. Remap keys, create complex shortcuts, and build rules that work with any keyboard or input device.

brew install --cask karabiner-elements
Pricing: Free Visit website →
Compatibility and recovery
OS requirements
Version requirements have not been documented.
Tested on
Not tested by this project on a recorded OS version.
Prerequisites
Not documented. Check the guide and vendor requirements before proceeding.
Effect
Customize any key on your keyboard. Remap keys, create complex shortcuts, and build rules that work with any keyboard or input device.
Undo or removal
No verified recovery instructions recorded. Save your existing configuration before changing it.

Report outdated instructions · Opens a draft on GitHub for you to review and submit.

Karabiner-Elements lets you remap keyboard keys at the system level on macOS, before any app sees them. Simple remappings (like Caps Lock → Escape for vim users) take seconds to set up. Complex modifications let you create layer-based shortcuts, dual-role keys, and application-specific rules.

A popular use case is the “hyper key” setup — remapping Caps Lock to simultaneously hold ⌃ ⌥ ⌘ ⇧ when held, and Escape when tapped. This gives you a clean modifier key for system-wide shortcuts that never conflicts with app shortcuts.

The community-maintained “Complex Modifications” rules library at ke-complex-modifications.pqrs.org has hundreds of ready-made rules you can import with one click.