Carles Andres' avatarHomeBlogReference
Back to reference

Keyboard modifiers by platform

Keyboard shortcuts in documentation are often written for Linux/Windows. This guide maps common modifier keys across platforms and explains how to configure your macOS terminal for compatibility.

Modifier Key Mapping

DocumentationWindows/LinuxmacOSSymbol
CtrlControlControl
AltAltOption
SuperWindows key / SuperCommand
MetaOften Alt (in terminals)Often Option (in terminals)
ShiftShiftShift

Note: The meaning of Meta depends on the app or terminal. In many terminal emulators, Meta is sent using the Alt/Option key, while GUI shortcuts usually use the Super/Windows/Command key instead.

Special Keys on macOS

Mac keyboards lack some keys found on full-size keyboards. Use Fn combinations:

KeymacOS Equivalent
HomeFn + Left Arrow
EndFn + Right Arrow
Page UpFn + Up Arrow
Page DownFn + Down Arrow
Delete (forward)Fn + Backspace
InsertFn + Enter (some apps)

Option Key as Alt/Meta in Terminals

By default, the Option key on macOS types special characters (e.g., Option + B = ) instead of sending Alt/Meta key codes. Most terminal applications require configuration to use Option as Alt:

TerminalConfiguration
Terminal.appPreferences → Profiles → Keyboard → "Use Option as Meta key"
iTerm2Preferences → Profiles → Keys → Left/Right Option key → "Esc+"
GhosttyAdd macos-option-as-alt = true to config
KittyWorks by default (macos_option_as_alt yes to customise)
AlacrittyWorks by default
WezTermWorks by default
HyperAdd modifierKeys: { altIsMeta: true } to config

Common Shortcut Translations

Examples of how documentation shortcuts translate to macOS:

DocumentationmacOS Keys
Ctrl+CControl + C
Alt+FOption + F (requires terminal config)
Ctrl+Alt+DeleteControl + Option + Fn + Backspace
Ctrl+HomeControl + Fn + Left Arrow
Alt+1Option + 1 (requires terminal config)