Keyboard Shortcuts to Open Software: How-To
In this article
You can create keyboard shortcuts to open any software on Windows, macOS, or Linux by assigning a key combination to the application's shortcut or launcher. This article explains the built-in methods for each operating system, how to choose effective shortcuts, and how to troubleshoot common issues.
Why Create Shortcuts for Software
Launching apps with the keyboard saves time and reduces repetitive mouse movement. Instead of clicking through the Start menu, Dock, or desktop icons, a single key combo brings up the program instantly. This is especially useful for people who use a handful of apps dozens of times per day, such as a browser, email client, code editor, or terminal. Keyboard shortcuts also help users with motor impairments who find precise mouse control difficult.
How It Works on Windows
Windows does not have a direct “assign hotkey to any program” setting in the standard properties dialog for all apps, but you can use the built-in shortcut properties method for most desktop applications. Here is the process:
- Right-click the application's desktop shortcut (or its .exe file in File Explorer) and select Properties.
- Go to the Shortcut tab.
- Click in the Shortcut key field and press the key combination you want (e.g., Ctrl+Alt+N). Windows automatically adds Ctrl+Alt if you type a letter or number.
- Click OK. The shortcut works immediately.
This method only works for shortcuts that point to an executable file, not for UWP apps from the Microsoft Store. For Store apps, you can pin them to the taskbar and use Windows key + number (e.g., Win+1 for the first pinned app). Alternatively, create a desktop shortcut manually by dragging the app from the Start menu or using the “Open file location” option, then assign the hotkey.
How It Works on macOS
macOS does not offer a simple “set hotkey for app” dialog, but you can use the built-in Automator or Shortcuts app to create a service or shortcut that launches an app, then assign a keyboard shortcut in System Settings. The most straightforward method uses Automator:
- Open Automator (from Applications) and create a new Quick Action (formerly called Service).
- Add a Launch Application action and choose the app you want.
- Set “Workflow receives” to no input in any application.
- Save it with a name like “Launch Safari”.
- Go to System Settings → Keyboard → Keyboard Shortcuts → Services.
- Find your saved service under “General” or “Files and Folders” and assign a shortcut like ⌘⌥S.
Alternatively, the Shortcuts app (macOS Monterey and later) can create a shortcut that runs an app, and you can assign a keyboard shortcut from the Shortcuts app itself. Note that some shortcuts may conflict with system or app-specific shortcuts, so choose uncommon combos.
How It Works on Linux (GNOME, KDE, etc.)
Linux desktop environments vary, but most allow custom keyboard shortcuts through their settings. In GNOME:
- Open Settings → Keyboard → View and Customize Shortcuts.
- Scroll to Custom Shortcuts and click the + button.
- Enter a name, the command to launch the app (e.g.,
firefoxor/usr/bin/gedit), and press the key combination you want. - Click Add.
In KDE Plasma, go to System Settings → Shortcuts → Custom Shortcuts and create a new global shortcut that runs a command. Other environments like Xfce and Cinnamon have similar settings under “Keyboard” or “Window Manager”. The command must be in your PATH or use the full path to the executable.
Choosing Effective Shortcuts
A good shortcut is easy to remember, quick to press, and unlikely to conflict with existing shortcuts. Consider the following:
- Use modifiers: Ctrl/Cmd + Alt + a letter is a common pattern that avoids many built-in shortcuts.
- Avoid single letters without modifiers – they often conflict with typing or app shortcuts.
- Use mnemonic letters: For example, Ctrl+Alt+B for a browser, Ctrl+Alt+T for a terminal.
- Keep it one-handed: Combos that require stretching across the keyboard are slower.
- Test for conflicts: After assigning, press the combo in a few apps to see if another action triggers.
Common Problems and Fixes
Several issues can prevent shortcuts from working. Here are the most frequent ones and how to resolve them:
- Shortcut does nothing: Check that the application shortcut still points to the correct .exe or .app. If you moved the program, recreate the shortcut.
- Shortcut opens a different app: Another program (like a keyboard utility or another app's global hotkey) may have grabbed the same combo. Change your shortcut to something else.
- Windows requires Ctrl+Alt automatically: You cannot assign just “Ctrl+N” – you must include Alt or Shift. If you want a different modifier, use a third-party tool.
- Shortcut works only when the app is not running: This is normal – the shortcut launches the app; if it's already open, it may just focus it (depending on the app).
- macOS service doesn't appear: Ensure the Automator workflow is saved as a Quick Action and that you assigned the shortcut in System Settings under Services.
Third-Party Tools and Alternatives
If the built-in methods are too limited, several free and open-source utilities provide more flexibility. On Windows, AutoHotkey lets you write scripts that assign any hotkey to launch programs, send keystrokes, or even create complex macros. A simple script like ^!n::Run Notepad maps Ctrl+Alt+N to Notepad. On macOS, tools like BetterTouchTool or Karabiner-Elements allow custom key remapping, though they require installation and configuration. On Linux, you can use the command line with tools like xbindkeys to bind keys to commands. These tools give you fine control but require learning their syntax or interface.
Frequently Asked Questions
Can I use Windows key + letter for custom shortcuts?
No, Windows reserves the Windows key + letter combinations for system shortcuts (like Win+E for Explorer). You can use Windows key + number to launch taskbar-pinned apps (e.g., Win+1 launches the first pinned app), but you cannot assign Win+A to a custom program without third-party tools.
Why does my shortcut only work when the app is closed?
That's by design. The shortcut is a launch command, not a toggle. If the app is already running, the shortcut may do nothing or may bring the existing window to the foreground, depending on the application. To make it toggle, you'd need a script that checks if the app is running and then either launches or focuses it.
Do shortcuts work for portable apps (no installation)?
Yes, as long as you create a shortcut to the .exe file and assign the hotkey in its properties. Portable apps work the same way as installed ones for this purpose.
Can I assign a shortcut to a website or a file, not just an app?
Yes. On Windows, create a shortcut to a URL (e.g., drag the browser's address bar to the desktop) and assign a hotkey. On macOS, you can create a shortcut to a file or folder via Automator and assign a service. On Linux, use a custom shortcut with a command that opens the file or URL (e.g., xdg-open https://example.com).
Will my shortcuts work after restarting the computer?
Yes, built-in shortcuts persist across reboots. Third-party tools like AutoHotkey require the script to be running at startup, which you can configure in the tool's settings or by placing a shortcut in the Startup folder.
Is there a way to see all my existing shortcuts to avoid conflicts?
Windows does not have a central list, but you can check common system shortcuts in Settings → System → Keyboard. macOS shows all system shortcuts under System Settings → Keyboard → Keyboard Shortcuts. For app-specific shortcuts, check the app's menu bar. Third-party tools like AutoHotkey have a built-in script editor that shows your own assignments.