How to Create Keyboard Shortcuts on Any Device or OS
Keyboard shortcuts are one of the most underused productivity tools built into every major operating system. Whether you want to launch an app with a single key combination, automate a repetitive text string, or remap keys entirely, most platforms give you more control than you might expect — often without installing anything extra.
What a Keyboard Shortcut Actually Does
At the system level, a keyboard shortcut is a mapped instruction: when the OS detects a specific key combination, it triggers a predefined action. That action might open a file, execute a script, paste a block of text, or switch between windows. The mapping lives either in the operating system's settings, inside a specific application, or in third-party software designed to extend shortcut functionality.
There are two broad types worth distinguishing:
- System-wide shortcuts — work regardless of which app is in focus
- Application-specific shortcuts — only active when that particular app is open and active
Most built-in shortcut creators operate at the system level. Application-level shortcuts are typically configured inside the app's own settings menu.
How to Create Keyboard Shortcuts on Windows
Windows offers a native shortcut creation method that's limited but accessible to all users.
For launching apps or files:
- Right-click any desktop shortcut or Start Menu item
- Select Properties
- Click in the Shortcut key field
- Press the key combination you want to assign (Windows automatically adds Ctrl + Alt as a prefix)
- Click Apply
This method only supports launching programs — it won't let you trigger actions inside apps or paste text snippets.
For more flexibility, Windows Power Users often turn to:
- AutoHotkey — a free scripting tool that lets you map virtually any key combination to any action, including typing out text, clicking buttons, or running programs
- PowerToys (by Microsoft) — includes a Keyboard Manager module that remaps individual keys or entire shortcuts system-wide, no scripting required
PowerToys is particularly accessible for users who want remapping without learning a scripting language. AutoHotkey has a steeper learning curve but covers nearly any use case imaginable.
How to Create Keyboard Shortcuts on macOS 🍎
macOS has a built-in shortcut manager that's more capable than Windows' native option.
To create or modify shortcuts:
- Open System Settings (or System Preferences on older versions)
- Go to Keyboard → Keyboard Shortcuts
- Select a category (App Shortcuts, Mission Control, etc.)
- Click the + button to add a new shortcut
- Choose the application, type the exact menu item name, and assign a key combination
The App Shortcuts section is especially useful — it lets you assign a key combo to any menu item in any app, as long as you type the menu item name exactly as it appears.
For text expansion (typing a short abbreviation that expands into a longer phrase), macOS includes this natively under System Settings → Keyboard → Text Replacements.
For advanced users, Automator and Shortcuts (available on macOS Monterey and later) allow you to build multi-step workflows and assign them to keyboard triggers.
How to Create Keyboard Shortcuts on Linux
Linux shortcut management varies significantly by desktop environment.
| Desktop Environment | Shortcut Settings Location |
|---|---|
| GNOME | Settings → Keyboard → View and Customize Shortcuts |
| KDE Plasma | System Settings → Shortcuts |
| XFCE | Settings Manager → Keyboard → Application Shortcuts |
Most Linux DEs allow custom shortcuts tied to shell commands, which makes them highly flexible. If you can write a command that does something in the terminal, you can usually bind it to a key combination.
xdotool and xbindkeys are popular command-line tools for users who want finer control or are working with minimal desktop environments.
Text Expansion: A Shortcut Category of Its Own
Text expansion deserves its own mention because it's often overlooked. Instead of remapping keys, text expanders let you type a short trigger (like ;addr) and have it automatically replaced with a full block of text (like your complete mailing address).
Built-in options exist on all major platforms:
- Windows: No native text expander, but AutoHotkey handles this cleanly
- macOS/iOS: Text Replacements in Keyboard settings
- Linux: Varies by DE; third-party tools like Espanso work cross-platform
Cross-platform tools like Espanso or AutoTextExpander are worth considering if you work across multiple operating systems and want consistent behavior everywhere.
Variables That Affect Your Setup ⚙️
The right approach to creating keyboard shortcuts depends on several factors that vary from user to user:
- Operating system and version — native tools differ substantially, and some features (like macOS Shortcuts app) are only available on newer OS versions
- Technical comfort level — scripting tools like AutoHotkey are powerful but require writing and debugging basic scripts
- Use case — launching apps, remapping keys, expanding text, and automating workflows each point toward different tools
- Cross-device needs — if you work across Windows, macOS, and Linux, a cross-platform tool may be more efficient than learning three separate native systems
- Application-specific needs — some apps (IDEs, design tools, video editors) have their own robust shortcut editors that don't interact with OS-level tools at all
A developer who lives in a code editor has very different shortcut needs than someone who mostly wants to speed up email responses or reduce repetitive data entry. The methods that make sense for one profile can be overkill — or fall short — for the other.
Understanding which category your needs fall into is usually the first real decision point, and that depends entirely on what's slowing you down in your current workflow. 🖥️