A key is an object used to open and close locks. Many things have locks, for example, doors. Keys are also used to turn on cars, machines and other things.
A key is used by placing the key into the slot of the thing you want to unlock.
A key that can open more than one lock (if each lock also has its own key) is called a master key or skeleton key.
History
The earliest known lock and key device was discovered in the ruins of Nineveh, the capital of ancient Assyria. Locks such as this were later developed into the Egyptian wooden pin lock, which consisted of a bolt, door fixture or attachment, and key. When the key was inserted, pins within the fixture were lifted out of drilled holes within the bolt, allowing it to move. When the key was removed, the pins fell part-way into the bolt, preventing movement.
The warded lock was also present from antiquity and remains the most recognizable lock and key design in the Western world. The first all-metal locks appeared between the years 870 and 900, and are attributed to the English craftsmen. It is also said that the key was invented by Theodorus of Samos in the 6th century BC.
Affluent Romans often kept their valuables in secure locked boxes within their households, and wore the keys as rings on their fingers. The practice had two benefits: It kept the key handy at all times, while signaling that the wearer was wealthy and important enough to have money and jewelry worth securing.
Further reading
Phillips, Bill. (2005). The Complete Book of Locks and Locksmithing. McGraw-Hill. ISBN0-07-144829-2.
Alth, Max (1972). All About Locks and Locksmithing. Penguin. ISBN0-8015-0151-2
Robinson, Robert L. (1973). Complete Course in Professional Locksmithing Nelson-Hall. ISBN0-911012-15-X