
A musical keyboard is the set of adjacent depressible levers or keys on a
musical instrument. Keyboards typically contain keys for playing the twelve notes of the Western
musical scale, with a combination of larger, longer keys and smaller, shorter keys that repeats at the interval of an
octave. Pressing a key on the keyboard makes the instrument produce sounds—either by mechanically striking a string or tine (
acoustic and
electric piano,
clavichord), plucking a string (
harpsichord
A harpsichord ( it, clavicembalo; french: clavecin; german: Cembalo; es, clavecín; pt, cravo; nl, klavecimbel; pl, klawesyn) is a musical instrument played by means of a musical keyboard, keyboard. This activates a row of levers that turn a ...
), causing air to flow through a
pipe organ
The pipe organ is a musical instrument that produces sound by driving pressurized air (called ''wind'') through the organ pipes selected from a keyboard. Because each pipe produces a single pitch, the pipes are provided in sets called ''rank ...
, striking a bell (
carillon
A carillon ( , ) is a pitched percussion instrument that is played with a keyboard and consists of at least 23 cast-bronze bells. The bells are hung in fixed suspension and tuned in chromatic order so that they can be sounded harmon ...
), or, on electric and
electronic keyboard
An electronic keyboard, portable keyboard, or digital keyboard is an electronic musical instrument, an electronic derivative of keyboard instruments. Electronic keyboards include synthesizers, digital pianos, stage pianos, electronic organs ...
s, completing a circuit (
Hammond organ,
digital piano,
synthesizer
A synthesizer (also spelled synthesiser) is an electronic musical instrument that generates audio signals. Synthesizers typically create sounds by generating waveforms through methods including subtractive synthesis, additive synthesis ...
). Since the most commonly encountered
keyboard instrument
A keyboard instrument is a musical instrument played using a keyboard, a row of levers which are pressed by the fingers. The most common of these are the piano, organ, and various electronic keyboards, including synthesizers and digital pianos ...
is the
piano
The piano is a stringed keyboard instrument in which the strings are struck by wooden hammers that are coated with a softer material (modern hammers are covered with dense wool felt; some early pianos used leather). It is played using a musica ...
, the keyboard layout is often referred to as the ''piano keyboard''.
Description

The twelve notes of the Western
musical scale are laid out with the lowest note on the left. The longer keys (for the seven "natural" notes of the
C major scale
Scale or scales may refer to:
Mathematics
* Scale (descriptive set theory), an object defined on a set of points
* Scale (ratio), the ratio of a linear dimension of a model to the corresponding dimension of the original
* Scale factor, a number ...
: C, D, E, F, G, A, B)
jut forward. Because these keys were traditionally covered in
ivory
Ivory is a hard, white material from the tusks (traditionally from elephants) and teeth of animals, that consists mainly of dentine, one of the physical structures of teeth and tusks. The chemical structure of the teeth and tusks of mammals ...
they are often called the ''white notes'' or ''white keys''. The keys for the remaining five notes—which are not part of the C major scale—(i.e., C/D, D/E, F/G, G/A, A/B) (see
Sharp and
Flat) are raised and shorter. Black keys form a
pentatonic scale. Because these keys receive less wear, they are often made of black colored wood and called the ''black notes'' or ''black keys''. The pattern repeats at the interval of an
octave.
The arrangement of longer keys for C major with intervening, shorter keys for the intermediate semitones dates to the 15th century. Many keyboard instruments dating from before the nineteenth century, such as harpsichords and pipe organs, have a keyboard with the colours of the keys reversed: the ''white notes'' are made of ebony and the ''black notes'' are covered with softer white bone. A few electric and electronic instruments from the 1960s and subsequent decades have also done this; Vox's electronic organs of the 1960s, Farfisa's FAST portable organs, Hohner's
Clavinet L, one version of Korg's Poly-800 synthesizer and Roland's digital harpsichords.
Some 1960s electronic organs used reverse colors or gray sharps or naturals to indicate the lower part (or parts) of a single keyboard divided into two parts, each controlling a different
registration or sound. Such keyboards accommodate melody and contrasting accompaniment without the expense of a second
manual, and were a regular feature in Spanish and some English organs of the renaissance and baroque eras. The break was between
middle C and
C-sharp, or outside of Iberia between B and C. Broken keyboards reappeared in 1842 with the
harmonium, the split occurring at
E4/F4.
The reverse-colored keys on
Hammond organs such as the B3, C3 and A100 are latch-style
radio buttons for selecting pre-set sounds.
Size and historical variation

The chromatic range (also called ''
compass
A compass is a device that shows the cardinal directions used for navigation and geographic orientation. It commonly consists of a magnetized needle or other element, such as a compass card or compass rose, which can pivot to align itself with ...
'') of keyboard instruments has tended to increase. Harpsichords often extended over five octaves (>60 keys) in the 18th century, while most pianos manufactured since about 1870 have 88 keys. The lowest pitch (frequency: 27.5 Hz) of an 88-key piano is equivalent to a sub contrabass in the range name. Some modern pianos have even more notes (a
Bösendorfer
Bösendorfer (L. Bösendorfer Klavierfabrik GmbH) is an Austrian piano manufacturer and, since 2008, a wholly owned subsidiary of Yamaha Corporation. Bösendorfer is unusual in that it produces 97- and 92- key models in addition to instru ...
290 "Imperial" has 97 keys, and a
Stuart & Sons
Stuart & Sons is an Australian manufacturer of handcrafted grand pianos. The company is based in Tumut in New South Wales.
History
The company was established by Wayne Stuart in 1990 as ''Stuart & Sons Terra Australis Pty Limited.'' The co ...
model has 108 keys). While modern synthesizer keyboards commonly have either 61, 76 or 88 keys, small MIDI controllers are available with 25 keys. (Digital systems allow shifting octaves, pitch, and "splitting" ranges dynamically, which, in some cases, reduce the need for dedicated keys. However, smaller keyboards will typically limit which musical scores can be played.) Organs normally have 61 keys per manual, though some spinet models have 44 or 49. An organ
pedalboard is a keyboard with long pedals played by the organist's feet. Pedalboards vary in size from 12 to 32 notes or 42 in the case of the international touring Organ from "Cameron Carpenter".
In a typical keyboard layout, ''black note'' keys have uniform width, and ''white note'' keys have uniform width and uniform spacing at the front of the keyboard. In the larger gaps between the ''black'' keys, the width of the natural notes C, D and E differ slightly from the width of keys F, G, A and B. This allows close to uniform spacing of 12 keys per octave while maintaining uniformity of seven "natural" keys per octave.
Over the last three hundred years, the octave span distance found on historical keyboard instruments (organs,
virginals,
clavichords,
harpsichord
A harpsichord ( it, clavicembalo; french: clavecin; german: Cembalo; es, clavecín; pt, cravo; nl, klavecimbel; pl, klawesyn) is a musical instrument played by means of a musical keyboard, keyboard. This activates a row of levers that turn a ...
s, and
piano
The piano is a stringed keyboard instrument in which the strings are struck by wooden hammers that are coated with a softer material (modern hammers are covered with dense wool felt; some early pianos used leather). It is played using a musica ...
s) has ranged from as little as to as much as . Modern piano keyboards ordinarily have an octave span of , resulting in the width of black keys averaging and white keys about at the base, disregarding space between keys.
In recent years, there has been evidence of a correlation between pianists with smaller hand spans and hand or arm injuries. Several reduced-size standards have been proposed for these pianists. A 7/8 size ( octave span) keyboard was developed by Canadian Christopher Donison in the 1970s. This size, along with the 15/16 size ( octave span) and a smaller size (130 mm (5.1 in) octave span) have since been developed and marketed by Steinbuhler & Company in Pennsylvania. These three sizes are registered as DS6.0, DS5.5 and DS5.1. The company was converted to the non-profi
DS Standard Foundationin 2018. Hailun USA manufactures pianos in the two alternative DS6.0 and DS5.5 sizes through an agreement with the DS Standard Foundation. Since 2013, a global network of pianists, teachers and performing arts health professionals has been increasingly advocating for change to the 'one size fits all' approach to piano keyboard manufacturing by major companies. This network is known as PASK
Pianists for Alternatively Sized Keyboards. U.S. pianist
Hannah Reimann
Hannah or Hanna may refer to:
People, biblical figures, and fictional characters
* Hannah (name), a female given name of Hebrew origin
* Hanna (Arabic name), a family and a male given name of Christian Arab origin
* Hanna (Irish surname), a famil ...
has promoted piano keyboards with narrower octave spans and has a U.S. patent on the apparatus and methods for modifying existing pianos to provide interchangeable keyboards of different sizes. Narrower keyboards are available from Steinway & Sons USA in new grand pianos or as a retrofit to existing pianos.
There have been variations in the design of the keyboard to address technical and musical issues. The earliest designs of keyboards were based heavily on the notes used in
Gregorian chant
Gregorian chant is the central tradition of Western plainchant, a form of monophonic, unaccompanied sacred song in Latin (and occasionally Greek) of the Roman Catholic Church. Gregorian chant developed mainly in western and central Europe dur ...
(the seven diatonic notes plus B-flat) and as such would often include B and B both as diatonic "white notes", with the B at the leftmost side of the keyboard and the B at the rightmost. Thus, an octave would have ''eight'' "white keys" and only four "black keys". The emphasis on these eight notes would continue for a few centuries after the "seven and five" system was adopted, in the form of the
short octave: the eight aforementioned notes were arranged at the leftmost side of the keyboard, compressed in the keys between E and C (at the time, accidentals that low were very uncommon and thus not needed). During the sixteenth century, when instruments were often tuned in
meantone temperament, some harpsichords were constructed with the G and E keys split into two. One portion of the G key operated a string tuned to G and the other operated a string tuned to A, similarly one portion of the E key operated a string tuned to E, the other portion operating a string tuned to D. This type of keyboard layout, known as the
enharmonic keyboard, extended the flexibility of the harpsichord, enabling composers to write keyboard music calling for harmonies containing the so-called ''
wolf'' fifth (G-sharp to E-flat), but without producing aural discomfort in the listeners (see
Split sharp). The "broken octave", a variation of the aforementioned short octave, similarly used split keys to add accidentals left out of the short octave. Other examples of variations in keyboard design include the
Jankó keyboard and the chromatic keyboard systems on the
chromatic button accordion and
bandoneón.
Electronic keyboards

Simpler electronic keyboards have switches under each key. Depressing a key connects a circuit, which triggers tone generation. Most keyboards use a
keyboard matrix circuit A keyboard matrix circuit is a design used in most electronic musical keyboards and computer keyboards in which the key switches are connected by a grid of wires, similar to a diode matrix. For example, 16 wires arranged in 8 rows and 8 columns can ...
, in which 8 rows and 8 columns of wires cross — thus, 16 wires can provide 8 × 8 = 64 crossings, which the keyboard controller scans to determine which key was pressed. The problem with this system is that it provides only a crude binary on/off signal for each key. Better electronic keyboards employ two sets of slightly offset switches for each key. By determining the timing between the activation of the first and second switches, the velocity of a key press can be determined, greatly improving the performance dynamic of a keyboard. The best electronic keyboards have dedicated circuits for each key, providing polyphonic aftertouch.
Advanced electronic keyboards may provide hundreds of key touch levels
[Digital piano specs](_blank)
(100 pressure levels specified). and have 88 keys, as most pianos do.
Playing techniques
Despite their visual similarity, different keyboard instrument types require different techniques. The piano hammer mechanism produces a louder note the faster the key is pressed, while the harpsichord's plectrum mechanism does not perceptibly vary the volume of the note with different touch on the keyboard. The
pipe organ
The pipe organ is a musical instrument that produces sound by driving pressurized air (called ''wind'') through the organ pipes selected from a keyboard. Because each pipe produces a single pitch, the pipes are provided in sets called ''rank ...
's volume and timbre are controlled by the flow of air from the bellows and the stops preselected by the player. Players of these instruments therefore use different techniques to color the sound. An
arranger keyboard may be preset to produce any of a range of voices as well as percussion and other accompaniments that respond to chords played by the left hand.

Even though the keyboard layout is simple and all notes are easily accessible, playing requires skill. A proficient player has undertaken much training to play accurately and in
tempo
In musical terminology, tempo ( Italian, 'time'; plural ''tempos'', or ''tempi'' from the Italian plural) is the speed or pace of a given piece. In classical music, tempo is typically indicated with an instruction at the start of a piece (ofte ...
. Beginners seldom produce a passable rendition of even a simple piece due to lack of
technique. The sequences of movements of the player's hands can be very complicated. Problems include wide-spanned
chords
Chord may refer to:
* Chord (music), an aggregate of musical pitches sounded simultaneously
** Guitar chord a chord played on a guitar, which has a particular tuning
* Chord (geometry), a line segment joining two points on a curve
* Chord ...
, which can be difficult for people with small hands, chords requiring unusual hand positions that can initially be uncomfortable, and fast
scales,
trills and
arpeggios.
Playing instruments with ''velocity sensitive'' (or ''dynamic'') keyboards (i.e., that respond to varying playing velocity) may require finger independence, so that some fingers play "harder" while others play more softly. Pianists call this control of touch velocity ''voicing'' (not to be confused with a piano technician's "voicing" of a piano by modifying the hardness of the hammers). Keyboardists speak of playing harder and softer, or with more or less force. This may accurately describe the player's experience—but in the mechanics of the keyboard,
velocity
Velocity is the directional speed of an object in motion as an indication of its rate of change in position as observed from a particular frame of reference and as measured by a particular standard of time (e.g. northbound). Velocity i ...
controls musical dynamics. The faster the player depresses the key, the louder the note. Players must learn to coordinate two hands and use them independently. Most music is written for two hands; typically the right hand plays the
melody
A melody (from Greek μελῳδία, ''melōidía'', "singing, chanting"), also tune, voice or line, is a linear succession of musical tones that the listener perceives as a single entity. In its most literal sense, a melody is a combina ...
in the
treble
Treble may refer to:
In music:
*Treble (sound), tones of high frequency or range, the counterpart of bass
*Treble voice, a choirboy or choirgirl singing in the soprano range
*Treble (musical group), a three-piece girl group from the Netherlands
*T ...
range, while the left plays an accompaniment of bass notes and chords in the
bass
Bass or Basses may refer to:
Fish
* Bass (fish), various saltwater and freshwater species
Music
* Bass (sound), describing low-frequency sound or one of several instruments in the bass range:
** Bass (instrument), including:
** Acoustic bass gui ...
range. Examples of music written for the left hand alone include several of
Leopold Godowsky's
53 Studies on Chopin's Etudes,
Maurice Ravel's
Piano Concerto for the Left Hand and
Sergei Prokofiev's
Piano Concerto No. 4 for the left hand. In music that uses
counterpoint technique, both hands play different melodies at the same time.
Other uses

A number of percussion instruments—such as the
xylophone,
marimba
The marimba () is a musical instrument in the percussion family that consists of wooden bars that are struck by mallets. Below each bar is a resonator pipe that amplifies particular harmonics of its sound. Compared to the xylophone, the timbr ...
,
vibraphone
The vibraphone is a percussion instrument in the metallophone family. It consists of tuned metal bars and is typically played by using mallets to strike the bars. A person who plays the vibraphone is called a ''vibraphonist,'' ''vibraharpist, ...
, or
glockenspiel
The glockenspiel ( or , : bells and : set) or bells is a percussion instrument consisting of pitched aluminum or steel bars arranged in a keyboard layout. This makes the glockenspiel a type of metallophone, similar to the vibraphone.
The ...
— have pitched elements arranged in the keyboard layout. Rather than depress a key, the performer typically strikes each element (bell, metal or wood bar, etc.) with a mallet.
There are some examples of a musical keyboard layout used for non-musical devices. For example, some of the earliest
printing telegraph machines used a layout similar to a piano keyboard.
The House Printing Telegraph (image)
/ref>
Keyboards with alternative sets of keys
There are some rare variations of keyboards with more or fewer than 12 keys per octave, mostly used in microtonal music
Microtonal music or microtonality is the use in music of microtones— intervals smaller than a semitone, also called "microintervals". It may also be extended to include any music using intervals not found in the customary Western tuning of ...
, after the discoveries and theoretical developments of musician and inventor Julián Carrillo
Julián Carrillo Trujillo (January 28, 1875 – September 9, 1965) was a Mexican composer,Camp, Roderic Ai (1995). "Carrillo (Flores), Nabor" on ''Mexican Political Biographies, 1935–1993: Third Edition'', p. 121. . conductor, violin ...
(1875–1965).
Some free-reed instrument keyboards such as accordions and Indian harmoniums include microtones. Electronic music pioneer Pauline Oliveros
Pauline Oliveros (May 30, 1932 – November 24, 2016) was an American composer, accordionist and a central figure in the development of post-war experimental and electronic music.
She was a founding member of the San Francisco Tape Music Ce ...
played one of these. Egyptian belly-dance musicians like Hassam Ramzy use custom-tuned accordions so they can play traditional scales. The small Garmon accordion played in the Music of Azerbaijan
Azerbaijani music (Azerbaijani: Azərbaycan musiqisi) is the musical tradition of the Azerbaijani people from Azerbaijan Republic. Azerbaijani music has evolved under the badge of monody, producing rhythmically diverse melodies.Энцикло� ...
sometimes has keys that can play microtones when a "shift" key is pressed.
See also
* Archicembalo, instrument with alternate keyboard with 36 keys
*Electronic keyboard
An electronic keyboard, portable keyboard, or digital keyboard is an electronic musical instrument, an electronic derivative of keyboard instruments. Electronic keyboards include synthesizers, digital pianos, stage pianos, electronic organs ...
* Isomorphic keyboard
* Enharmonic keyboard
*Fokker organ
Adriaan Daniël Fokker (; 17 August 1887 – 24 September 1972) was a Dutch physicist. He worked in the fields of special relativity and statistical mechanics. He was the inventor of the Fokker organ, a 31-tone equal-tempered (31-TET) organ. ...
, 31TET
In music, 31 equal temperament, 31-ET, which can also be abbreviated 31-TET (31 tone ET) or 31- EDO (equal division of the octave), also known as tricesimoprimal, is the tempered scale derived by dividing the octave into 31 equal-sized steps (eq ...
tuned organ with alternate keyboard
*Keyboard instrument
A keyboard instrument is a musical instrument played using a keyboard, a row of levers which are pressed by the fingers. The most common of these are the piano, organ, and various electronic keyboards, including synthesizers and digital pianos ...
* Keytar
* Piano key frequencies
References
*
External links
{{Authority control
Human–machine interaction