Etymology
Advertisement
key (n.1)
"instrument for opening locks," Middle English keie, from Old English cæg "metal piece that works a lock, key" literal and figurative ("solution, explanation, one who or that which opens the way or explains"), a word of unknown origin, abnormal evolution, and no sure cognates other than Old Frisian kei.

Perhaps it is related to Middle Low German keie "lance, spear" on notion of "tool to cleave with," from Proto-Germanic *ki- "to cleave, split" (cognates: German Keil "wedge," Gothic us-kijans "come forth," said of seed sprouts, keinan "to germinate"). But Liberman writes, "The original meaning of *kaig-jo- was presumably '*pin with a twisted end.' Words with the root *kai- followed by a consonant meaning 'crooked, bent; twisted' are common only in the North Germanic languages." Compare also Sanskrit kuncika- "key," from kunc- "make crooked."

Modern pronunciation is a northern variant predominating from c. 1700; earlier and in Middle English it often was pronounced "kay." Meaning "that which holds together other parts" is from 1520s. Meaning "explanation of a solution" (to a set problem, code, etc.) is from c.1600.

The musical sense originally was "tone, note" (mid-15c.). In music theory, the sense developed 17c. to "sum of the melodic and harmonic relationships in the tones of a scale," also "melodic and harmonic relationships centering on a given tone." Probably this is based on a translation of Latin clavis "key," used by Guido for "lowest tone of a scale," or French clef (see clef; also see keynote). Sense of "mechanism on a musical instrument operated by the player's fingers" is from c. 1500, probably also suggested by uses of clavis. OED says this use "appears to be confined to Eng[lish]." First of organs and pianos, by 1765 of wind instruments; transferred to telegraphy by 1837 and later to typewriters (1876).
Related entries & more 
Advertisement
key (n.2)
"low island," 1690s, from Spanish cayo "shoal, reef," from Taino (Arawakan) cayo "small island;" spelling influenced by Middle English key "wharf" (c. 1300; mid-13c. in place names), from Old French kai "sand bank" (see quay).
Related entries & more 
key (adj.)
"crucially important," 1913, from key (n.1). Perhaps from or reinforced by key move, in chess, "first move in a solution to a set problem" (1827), which to an experienced player opens the way to see how the solution will develop.
Related entries & more 
key (v.)
mid-14c., "fasten with a wedge or key" (implied in keyed), from key (n.1). From 1630s as "regulate the pitch of a musical instrument by means of a key," also in the figurative sense "give a tone or intensity to." From 1963 as "do data entry or other work on a keyboard." Meaning "to scratch (a car's paint job) with a metal key" is recorded by 1986. Related: Keyed; keying.
Related entries & more 
low-key (adj.)
by 1895, perhaps 1847, from low key in some sense relating to deep musical tone or quiet sound; see low (adj.) + key (n.1). Low key in reference to a quiet voice is attested from 1837. Also compare undertone.
Related entries & more 
Advertisement
off-key (adv.)

by 1911, of music or singing, "not having the correct tone or pitch, out of tune," from off (prep.) + musical sense of key (n.1). Figurative sense "not in accordance with what is appropriate in the circumstances" is by 1943.

Related entries & more 
latch-key (n.)

also latchkey, "a key to raise or draw back the latch of a door" and allow one to enter from outside, 1825, from latch (n.) + key (n.1). Latchkey child first recorded 1944, American English, in reference to children coming home from school while both parents are away at work.

Many elementary school principals and teachers have always known the "latchkey" child or the "eight-hour orphan." [New York State Teachers Association, "New York State Education," 1944]

The older or simpler device was a latch-string, which could be pulled in to lock up; having it out was symbolic of openness.

Related entries & more 
keypad (n.)
"handheld pad of labelled buttons to work electronics," 1975, from key (n.1) + pad (n.).
Related entries & more