This article needs more citations. (July 2008) |
In computing, a modifier key is a special key (or combination) on a computer keyboard that temporarily modifies the normal action of another key when pressed simultaneously. In general, pressing a modifier key on its own does nothing; therefore pressing any of the ⇧ Shift, Alt, or Ctrl keys alone will not usually trigger computer action. A modifier key will commonly be used in a defined sequence of key presses in conjunction with another key, triggering a specific action. These sequences are called keyboard shortcuts.
For example, in most keyboard layouts the Shift key combination ⇧ Shift+A will produce a capital letter "A" instead of the default lower-case letter "a" (unless in Caps Lock or Shift lock mode). A combination of Alt+F4 in Microsoft Windows will trigger the shortcut for closing the active window; in this instance, Alt is the modifier key. In contrast, pressing just ⇧ Shift or Alt will probably do nothing unless assigned a specific function in a particular program (for example, activating input aids or the toolbar of the active window in Windows).
User interface expert Jef Raskin coined the term "quasimode" to describe the state a computer enters into when a modifier key is pressed.

The first modifier key, the shift key, was introduced in 1878 by the Remington 2 typewriter. Early typewriters either only produced capital letters, or required separate keys for capitals and lowercase letters - this type was later known as 'shiftless' typewriters. The invention of 'shift keys', which would physically shift part of the mechanism so a different part of the type head would contact the page, made it possible for each key to produce multiple characters.
Dead keys were a later typewriter invention, allowing accented characters for multilingual use. Pressing a dead key would produce an accent on the page but not advance the paper carriage, so that a character could be typed afterwards.

The standardised 5-bit International Telegraph Alphabet No. 2 introduced control codes transmitted like other characters but which would not be printed. They instead affected some other functionality of the receiving machine, for example, returning the paper carriage, or ringing a bell to alert the intended recipient, or changing the interpretation of subsequent characters between letters and numbers. These were sent by pressing control keys, which were not modifier keys in the traditional sense as they did not have to be pressed in combination with another key.
7-bit ASCII greatly expanded the range of control characters available when it was introduced alongside the Teletype Model 33 in 1963. The keyboard included a key labelled CTRL which would modify the key codes of other keys when held - it set the two most significant bits of the keyboard code to 0, turning an ordinary printing character into an ASCII C0 control code.</ref> Some Teletype teleprinters had a ALT MODE key, which was not a modifier key - it sent a non-printing character.
The legacy of the ⌃ Ctrl key sending C0 control codes lives on in caret notation and command-line environments. For example, pressing C will send ASCII 11000112, whereas pressing Ctrl+C (the standard for halting command-line programs will send 00000112, which is expressed in caret notation as ^C.

The modern computer keyboard was heavily influenced by research at the American universities in the 1970s and 1980s, starting with the Stanford AI Lab keyboard. This was the first keyboard to add a ◆ Meta modifier key. It worked similarly to the Control key, modifying the most significant bits of the keyboard code. (Bits which are set by modifier keys in this way became known as bucky bits, terminology also invented at SAIL). (As the SAIL keyboard was designed around nine-bit bytes, the Meta key set the ninth bit to 1.) The ◆ Meta key became the ⎇ Alt key on IBM-compatible PC keyboards and the ⌥ option key on Apple keyboards. Some Linux software, most notably Emacs, still refers to the key as the Meta key, and abbreviates keyboard shortcuts such as Alt+x as M-x.
Later keyboards, especially those designed by at the MIT CSAIL, expanded the set of modifier keys. The space-cadet keyboard had four bucky bit keys (⎈ Control, ◆ Meta, ❖ Super, and ✦ Hyper), and three shift keys (⇧ Shift, Top, and Front/Greek). The ❖ Super key became the ⌘ Windows and ⌘ Command keys on Windows and Mac keyboards respectively.
The most common are:
The (Sun) Meta key, Windows key, (Apple) Cmd key, and the analogous "Amiga key" (A) on Amiga computers, are usually handled equivalently. Under the Linux operating system, the desktop environment KDE Plasma calls this key Meta, while GNOME calls this key, neutrally, Super. This could be considered confusing, since the original space-cadet keyboard and the X Window System recognize a "Meta" modifier distinct from "Super".
The ZX Spectrum has a Symbol Shift key in addition to Caps Shift. This was used to access additional punctuation and keywords.
The MSX computer keyboard, besides Shift and Control, also included two special modifier keys, Code and Graph. In some models, as in the Brazilian Gradiente Expert, the Code and Graph keys are labelled "L Gra" and "R Gra" (Left and Right Graphics). They are used to select special graphic symbols and extended characters.
Likewise, the Commodore 64 and other Commodore computers had the Commodore key at the bottom left of the keyboard.
Compact keyboards, such as those used in laptops, often have a Fn key to save space by combining two functions that are normally on separate keys. On laptops, pressing Fn plus one of the function keys, e.g., F2, often control hardware functions. Keyboards that lack a dedicated numeric keypad may mimic its functionality by combining the Fn key with other keys.
The MIT space-cadet keyboard had additional Top and Front modifier keys. Combined with standard modifiers, it could enter as many as 8,000 different characters.
Specialist typesetting machines, and word processors such as the Redactron, sometimes used multiple modifier keys to trigger mode changes e.g. for emboldened text or justification changes. This approach gradually became obsolete after software based on commodity hardware and operating systems adopted the WIMP metaphor which provided drop-down menus etc.
Some non-English language keyboards have special keys to produce accented modifications of the standard Latin-letter keys. In fact, the standard British keyboard layout includes an accent key on the top-left corner to produce àèìòù, although this is a two step procedure, with the user pressing the accent key, releasing, then pressing the letter key. These kinds of keys are called dead keys. The AltGr modifier produces the áéíóú sequence, or in conjunction with the Shift key, ÁÉÍÓÚ. Keyboards of some languages simply include the accented characters on their own keys. Some keyboards also have a Compose key for typing accented and other special characters. By pressing Compose, and then two other keys, something similar to a combination of the glyphs of the two previous keys will appear on the screen.
It is possible to use a modifier key as a normal key.
In 2005 macOS app Quicksilver introduced a feature called modifier-only activation. If a modifier key (Command) is pressed for a short duration (under 300 ms) then released with no other key being pressed, this is taken as a trigger.
In 2012 this kind of use of a Modifier key appeared in Apple's dictation preferences under OS X Mountain Lion, where Apple introduced options like "Press Right Command Key twice" to launch dictation.
This functionality was further increased in macOS Sequoia (2024) with the addition of modifier-only keys to be used alone to activate shortcuts such as "show desktop", including Left Command, Left Option, Left Control, Left Shift, Right Command, Right Control, Right Option, Right Shift, and Fn. This effectively gives users nine extra keys to activate shortcuts.
It is also possible to use (with some utility software) one key both as a normal key and as a modifier.
For example, you can use the space bar both as a normal Space bar and as a Shift. Intuitively, it will act as a standard Space when you want a whitespace, and a Shift when you want it to act as a shift. I.e. when you simply press and release it, it is the usual space, but when you press other keys, say X, Y and Z, while holding down the space, then they will be treated as ⇧ Shift plus X, Y and Z.
The above example is known as "SandS", standing for "Space and Shift" in Japan. But any number of any combinations are possible.
To press shift+space in the previous example, you need in addition to a space/shift dual role key, one of (a) another space/shift key, (b) a usual shift, or (c) a usual space key.