Keyboard shortcut

Also known as: hotkey

On this page 7

A keyboard shortcut, also called a hotkey, is a key or combination of keys that invokes a command directly, without navigating menus, toolbars or dialogs with a pointer. In desktop environments such as GNOME, KDE Plasma, Windows and macOS, shortcuts operate at several layers at once: the operating system, the desktop shell and window manager, and each individual application.

Shortcuts are a core element of efficient software interaction because they reduce task time, support keyboard-only accessibility and let experienced users work without shifting attention between keyboard and mouse. Their value depends on consistency across applications and on a clear rule for which layer receives a key press first.

How a keyboard shortcut travels from key to command

A shortcut begins as a hardware scan code produced by the keyboard controller, which the operating system translates into a keycode and then, through the active layout, into a keysym or virtual key. The input stack then checks whether any registered binding matches the current key and modifier state.

Matching follows a priority order. On Linux, the display server and compositor see the event first, so global bindings such as switching virtual desktops are consumed before an application receives them. Under X11, programs claim global keys with key grabs; under Wayland, the compositor owns all input and applications must request global shortcuts through a portal interface instead of grabbing keys themselves.

The following table summarizes the layers that may handle the same key press, from highest to lowest priority in a typical desktop.

LayerTypical examplesScope
Kernel or firmwareCtrl+Alt+Del secure attention sequence, Fn media keysWhole machine
Compositor or window managerSuper for the launcher, Alt+Tab task switcherWhole session
Desktop shell servicesPrint Screen capture, volume keysWhole session
ApplicationCtrl+S save, Ctrl+F findFocused window
Widget or text fieldCtrl+A select all, Home and EndFocused control
Layers that resolve a shortcut

Types of shortcuts and modifier keys

Shortcuts differ by how they are typed and by how widely they apply. The most common form is the chord, in which one or more modifier keys are held while a final key is pressed. Other forms include single-key accelerators, access keys that follow underlined menu letters, and multi-step sequences used in editors such as Emacs and Vim.

TypeHow it is enteredTypical use
ChordHold Ctrl or Cmd, press a letterStandard commands such as copy
Access keyAlt plus the underlined menu letterMenu navigation on Windows and Linux
Function keyF1 to F12, alone or with modifiersHelp, rename, refresh, full screen
Key sequenceTwo or more chords in orderEditors and integrated development tools
Global hotkeyChord registered system-wideLaunchers, screenshots, media control
Main shortcut types

Modifier conventions differ by platform. Windows and most Linux desktops use Ctrl as the primary command modifier, while macOS uses Command, which frees Control for terminal and text-navigation bindings. The Super key, labeled with the Windows logo on most keyboards, is generally reserved for shell-level actions such as opening the activities overview or snapping windows.

Standard shortcuts across desktop platforms

A small set of shortcuts is so widely shared that users expect it everywhere, a convention inherited from the Common User Access guidelines and the early Macintosh interface. Interface guidelines from GNOME, KDE, Microsoft and Apple all reinforce these mappings, and deviating from them is a recognized usability defect.

CommandWindows and LinuxmacOS
Copy and pasteCtrl+C, Ctrl+VCmd+C, Cmd+V
Undo and redoCtrl+Z, Ctrl+Y or Ctrl+Shift+ZCmd+Z, Cmd+Shift+Z
Switch windowsAlt+TabCmd+Tab between applications
Close windowAlt+F4 or Ctrl+WCmd+W
Open launcher or searchSuperCmd+Space
Lock sessionSuper+LCtrl+Cmd+Q
Common commands on three platforms

These shared bindings interact closely with neighboring concepts. The clipboard shortcuts depend on the clipboard service of the desktop, the task switcher is usually bound to Alt+Tab, and window snapping commonly uses Super combined with arrow keys.

Configuring and designing shortcuts

Most desktop environments expose a central shortcut editor in their settings, where users can rebind global actions and add custom commands that launch scripts or programs. Applications typically offer their own editor for application-scoped bindings, and some store them in plain configuration files that can be versioned and shared.

Designers of shortcut schemes follow several established principles:

  • Reserve the simplest chords for the most frequent commands.
  • Use mnemonic letters where possible, such as F for find and P for print.
  • Keep destructive actions behind harder combinations or a confirmation step.
  • Display bindings beside menu items and in tooltips so users can discover them.
  • Never override platform-standard shortcuts with unrelated meanings.

The decision table below shows how a binding should be scoped depending on what it controls.

SituationRecommended scopeReason
Action affects one documentApplicationAvoids conflicts with other programs
Action must work from any windowGlobal, registered through the desktopRequires session-level delivery
Action applies to one text fieldWidgetKeeps behavior local and predictable
Action is rare and riskyMenu only or a long chordPrevents accidental triggering
Choosing the scope of a new shortcut

Accessibility, conflicts and common mistakes

Keyboard shortcuts are an accessibility requirement, not only a convenience. WCAG 2.1 requires that all functionality be operable through a keyboard interface, and its character key shortcuts criterion requires that single-letter shortcuts can be turned off or remapped, because speech-input users may trigger them by accident. Features such as Sticky Keys let users press modifiers one at a time instead of holding them together.

Conflicts are the most frequent practical problem. A global binding silently steals a key from every application, so a user who assigns Ctrl+Alt+T to a screenshot tool may lose the same chord in an editor. Keyboard layouts add another complication: a shortcut defined by character rather than physical position can become hard to type on AZERTY or QWERTZ keyboards.

SymptomLikely causeFix
Shortcut does nothing in one programGlobal binding consumes the key firstRebind or remove the global entry
Shortcut fails on another layoutBinding depends on a shifted characterBind to a layout-neutral key
Global hotkey ignored under WaylandApplication relies on X11 key grabsUse the global shortcuts portal
Accidental commands while dictatingUnmodified single-key shortcutsAllow disabling or require a modifier
Typical shortcut problems

In everyday language

A keyboard shortcut is a quick way to tell the computer what to do by pressing a few keys together instead of clicking through menus. Pressing Ctrl and C to copy text is the classic case. It works like a speed-dial button on a phone: the action is the same, but you reach it much faster.

Some shortcuts work everywhere on the computer, such as the key that opens the start menu, while others work only inside one program. Learning a handful of common shortcuts saves time every day and also helps people who find a mouse difficult to use.

Seen in the real world

An accounts clerk at a mid-sized distribution company processes about 300 invoices per day in a Linux desktop running KDE Plasma. Each invoice requires opening a PDF, copying four fields into a web-based accounting form and filing the document. Using only the mouse, one invoice takes roughly 70 seconds.

After a short training session, the clerk adopts Alt+Tab to move between the viewer and the browser, Ctrl+C and Ctrl+V for the fields, Tab to move between form inputs and a custom global shortcut that runs a script to move the PDF into the archive folder. Average handling time falls to about 45 seconds, which saves roughly two working hours per day. The team also reports fewer wrist complaints because the hand stays on the keyboard for most of the task.