How to Define Keyboard Shortcuts: Step-by-Step Guide
In this article
You define a keyboard shortcut by opening the settings of the app, operating system, or website where you want it, finding its keyboard or hotkey section, and assigning a key combination to a specific action. The exact menu names vary by app and version, but the pattern is the same everywhere: choose the action, press the keys, save. This guide walks through the general method and then the specifics for Windows, macOS, and the most common app categories.
What You'll Need
- The app, operating system, or website where you want the shortcut to work, updated to a current version.
- Administrator rights on Windows or macOS if you are changing system-wide shortcuts (some settings are locked for standard users).
- A free key combination that is not already used by the system or another app.
- A physical keyboard for setup; on-screen keyboards and some remote controls cannot record key combinations.
Step-by-Step
- Decide the scope. A shortcut can be global (works everywhere, handled by the operating system), app-specific (works only when that app is focused), or in-app only (a browser extension or web app). Global shortcuts are the most likely to conflict with something else, so reserve them for actions you use constantly.
- Open the right settings page. On Windows, go to Settings > Accessibility > Keyboard for system-level options, or open the app's own settings for app shortcuts. On macOS, open System Settings > Keyboard > Keyboard Shortcuts. In most desktop apps, look under Settings > Keyboard, Settings > Shortcuts, or a similar heading. Labels differ slightly between versions, devices, and regions, so if a heading is not where you expect, use the search box inside Settings.
- Find the action you want to bind. Shortcut lists are usually grouped by category (File, Edit, View, Navigation). Scroll or search for the exact command name, then click or tap the current key field next to it. If the field is greyed out, the action cannot be rebound in that app.
- Press the new combination. Hold the modifier keys first (Ctrl, Alt, Shift, or Command and Option), then press the main key. Most apps accept two- or three-key combinations; avoid single-letter bindings because they will fire while you type.
- Watch for conflicts. If the field turns red or shows a warning, the combination is already in use. Pick a different one, or reassign the conflicting action first. On macOS, System Settings flags conflicts with a yellow warning icon next to the shortcut.
- Save and test. Click Apply, Save, or Done, then close Settings and try the shortcut in the app. If nothing happens, reopen the settings to confirm the binding stuck; some apps silently discard changes if you close the window without saving.
- Record it somewhere. Keep a short list of custom shortcuts, especially global ones, so you can undo them later if they clash with a new app.
Common Mistakes
- Binding a key the system already owns. Ctrl+Alt+Del, Command+Tab, and similar combinations cannot be reassigned, and trying to do so either fails silently or breaks the system action.
- Using the same shortcut in two apps. App-specific shortcuts are fine to duplicate, but global ones are not; the first app to claim the combination usually wins and the other never fires.
- Forgetting modifier order. Pressing the main key before the modifier often registers as a plain keystroke and does nothing.
- Assuming a shortcut is global. Many apps only listen for shortcuts while they are the active window. If you need it everywhere, set it at the operating-system level instead.
- Not saving. Some settings panels apply changes immediately, others need an explicit Save. If the shortcut vanishes after a restart, this is usually why.
Tips
- Stick to combinations that start with a modifier plus a letter or number; they are the least likely to conflict with typing.
- Group related shortcuts by modifier (for example, Ctrl+Shift for editing actions) so they are easier to remember.
- Before assigning a global shortcut, check the operating system's own shortcut list so you do not shadow a system action.
- If you use multiple devices, set the same shortcuts on each one; the muscle memory is worth the setup time.
- When an app offers a reset-to-defaults option, note it before you start customizing, so you have a clean way back.
Troubleshooting
The shortcut does nothing. Confirm the app is focused, then reopen its settings and check the binding is still there. Restart the app; some apps only load custom shortcuts at launch.
The shortcut triggers the wrong action. Another app or the operating system has claimed the same combination. Change one of the two, or make the app-specific one global only if you truly need it everywhere.
The key field will not accept your combination. The app may reserve that modifier for its own use, or the action may not be rebindable. Try a different modifier.
Changes revert after a restart. The settings were not saved, or a sync service is overwriting them from another device. Sign out of the sync service, reapply the shortcut, and sign back in.
System-wide shortcut stopped working after an update. Open the system keyboard settings and re-enter the combination; updates sometimes reset custom bindings.
Frequently Asked Questions
Can I define a keyboard shortcut for any app?
No. Only apps that expose a keyboard or shortcuts section in their settings allow it. For apps that do not, you can sometimes create a system-level shortcut that launches the app, but you cannot bind actions inside it.
Do keyboard shortcuts sync between devices?
Usually not. Operating-system shortcuts are stored per device, and most apps keep them locally. A few apps with cloud accounts sync preferences, but you should assume you need to set them on each device.
Can I use a shortcut to open a website?
Yes, on Windows and macOS you can create a shortcut that opens a URL in your default browser, but the exact dialog differs between the two systems. Check your operating system's help pages for the current steps.
What happens if two apps use the same shortcut?
The app that is focused normally wins for app-specific shortcuts. For global shortcuts, the first app to register the combination usually keeps it, and the other silently fails.
Can I define shortcuts on a phone or tablet?
Only within apps that offer them, and only with a connected physical keyboard on most phones and tablets. System-wide custom shortcuts are generally not available on mobile operating systems.
How do I remove a custom shortcut?
Return to the same settings page, select the shortcut field, and press Backspace or Delete, or use the reset option if the app provides one. Save the change and test that the old combination no longer fires.