All Keyboard Shortcuts for Mac: The Ultimate Guide
Comprehensive coverage of macOS shortcuts, from system-wide keys to Finder, apps, and customization. Learn practical examples, find- and replace-free workflows, and how to create your own shortcuts for faster, more efficient work on a Mac.
Understanding all keyboard shortcuts for mac
macOS shortcuts are more than a list of keystrokes—they are a layered language that accelerates every action from typing to navigation and multitasking. In this section we outline how this guide uses the phrase all keyboard shortcuts for mac: system-wide shortcuts, Finder and window-management shortcuts, and per-app shortcuts, plus ways to customize and extend them. The key is to build a mental map: memorize the essentials first, then learn app-specific mappings, and finally explore user-defined remappings. As you practice, you’ll notice the same modifier keys appear across apps, making it easier to transfer knowledge. For developers and power users, the mental model helps when building web apps or scripts that respond to common Mac keyboard events. The following snippet demonstrates a simple web example that detects Cmd+S on macOS and triggers a save action, illustrating how shortcuts land in both browser and OS contexts.
// Simple web app snippet: log when Command+S triggers Save
document.addEventListener('keydown', (e) => {
const isMac = navigator.platform.toLowerCase().includes('mac');
const mod = isMac ? e.metaKey : e.ctrlKey;
if (mod && e.key.toLowerCase() === 's') {
e.preventDefault();
console.log('Save shortcut detected');
}
});This example shows how a browser event mirrors OS shortcuts and helps you design cross-platform experiences.
--
System-wide shortcuts you should know
Many shortcuts are universal across apps and services on macOS. Start with the essentials you’ll use daily:
- Cmd+C: Copy
- Cmd+V: Paste
- Cmd+X: Cut
- Cmd+A: Select All
- Cmd+S: Save
- Cmd+P: Print
- Cmd+Q: Quit application
- Cmd+W: Close window
- Cmd+N: New window/document
- Cmd+Tab: Switch between apps
- Cmd+Space: Spotlight search
- Cmd+Shift+3: Take a full-screen screenshot
These are the keystrokes you should know by heart. They apply across Finder, browsers, and text editors. For longer workflows, combine them with modifier keys like Shift or Option to access additional features.
# List global shortcuts configured on macOS (if any)
defaults read -g NSUserKeyEquivalents 2>/dev/null || echo "No global shortcuts configured"{
"globalShortcuts": [
{"title": "Save", "shortcut": "Cmd+S"},
{"title": "Capture Screen", "shortcut": "Cmd+Shift+3"}
]
}Knowing these system-wide shortcuts helps you build fast, consistent habits across apps.
Finder and window management shortcuts
Finder and window management shortcuts accelerate file navigation and workspace control. Learn to create new windows, switch focus, or arrange windows efficiently. A few practical mappings include Cmd+N to open a new window, Cmd+Option+W to close all windows of the front app, and Cmd+M to minimize the active window. Align these with window snapping and mission-control habits to keep your desktop uncluttered. The examples below illustrate how to apply shortcuts in real scenarios and how to adapt them in scripts or automation.
# Open a new Finder window using AppleScript (works in Terminal)
osascript -e 'tell application "Finder" to make new Finder window'// Bind Cmd+N to open a new document in a web app
document.addEventListener('keydown', (ev) => {
if (ev.metaKey && ev.key.toLowerCase() === 'n') {
ev.preventDefault();
console.log('New document action');
}
});# Pseudocode: map a window management shortcut in a config file for a custom app
shortcuts = {
'new_window': 'Cmd+N',
'close_window': 'Cmd+W'
}
print(shortcuts)Window management shortcuts reduce mouse usage and speed up multitasking; use them to switch focus, arrange spaces, and keep your workflow fluid.
App-specific shortcuts: Safari, Notes, Terminal
App-specific shortcuts tailor the experience to each program. Safari users might rely on Cmd+L to focus the address bar, Cmd+R to reload, and Cmd+Option+F to search within a page. Notes can leverage Cmd+N for a new note and Cmd+K for adding hyperlinks; Terminal users often prefer Cmd+K to clear the screen, Cmd+T for a new tab, and Cmd+Plus/Minus for font size adjustments. This section demonstrates how to extend these with per-app mappings and the logic for avoiding conflicts when multiple apps claim the same combination.
{
"rules": [
{
"title": "Safari: Focus address bar",
"from": {"key_code": "l", "modifiers": {"mandatory": ["left_command"]}},
"to": [{"key_code": "l"}],
"type": "basic"
}
]
}# Quick backup of app shortcuts before editing (safe practice)
cp -r ~/.config/shortcuts ~/.config/shortcuts.bak// Add a Notes shortcut in a web-app context (local demo)
document.addEventListener('keydown', (ev) => {
if (ev.metaKey && ev.shiftKey && ev.key.toLowerCase() === 'n') {
ev.preventDefault();
console.log('New note in app');
}
});App-specific shortcuts let you maintain momentum in your most-used tools; plan them with your daily tasks and test across apps to avoid conflicts.
Customizing shortcuts in System Settings
Customizing shortcuts starts with understanding the built-in Keyboard preferences in System Settings. You can modify or add app-specific shortcuts via the Menu Titles in System Preferences > Keyboard > Shortcuts. This section shows a practical approach to planning changes, testing them, and documenting your decisions. We also show a JSON schema you can reuse in tools like Karabiner-Elements for complex modifications, accompanied by a backup strategy.
{
"title": "Custom Mac Shortcuts",
"rules": [
{
"description": "Map Cmd+Shift+N to create a new folder in Finder",
"manipulators": [
{"from": {"key_code": "n", "modifiers": {"mandatory": ["left_command", "left_shift"]}},
"to": [{"key_code": "n"}],
"type": "basic"}
]
}
]
}# Backup current keyboard shortcut configuration
cp -a ~/Library/Preferences/com.apple.symbolichotkeys.plist ~/Library/Preferences/com.apple.symbolichotkeys.plist.bakCustomizing shortcuts expands your toolkit beyond the defaults; always back up before applying changes and test with real tasks to confirm they work as intended.
Creating application-specific shortcuts with NSUserKeyEquivalents
macOS supports per-application shortcuts via NSUserKeyEquivalents in applications or scripts. This section shows how to structure a small dictionary that maps menu item titles to keystrokes, enabling consistent actions inside apps. We provide a sample structure and a quick script to apply and verify changes in a test app. Remember that menu titles must match exactly, including capitalization and punctuation.
{
"NSUserKeyEquivalents": {
"Save As…": "@$~s", // Cmd+Shift+S (example)
"New Note": "@n" // Cmd+N
}
}# Simple verifier for a key mapping dictionary
mapping = {"Save As…": "Cmd+Shift+S", "New Note": "Cmd+N"}
for title, keystroke in mapping.items():
print(f"{title} -> {keystroke}")App-specific customization unlocks fast, reliable workflows inside your favorite tools; keep a changelog and test each mapping in a safe environment before broader deployment.
Step-by-step: implementing macOS shortcuts in your workflow
- Audit your current shortcuts: list what you use most. 2) Define a target scope: system-wide vs app-specific. 3) Draft mappings that avoid conflicts with existing shortcuts. 4) Implement mappings using System Settings or a tool like Karabiner-Elements. 5) Test across apps and document results.
Estimated time: 45-60 minutes. Pro tip: start with high-frequency actions (Save, Find, New Tab) and expand gradually. Keep a log of changes and outcomes to reuse in future workflows.
true
