Technology
Key switches
In the first electronic keyboards in the early 1970s, the key switches were individual switches inserted into holes in metal frames. These keyboards cost from 80–120 US dollars and were used in mainframe data terminals. The most popular switch types were reed switches, Hall-effect switches, and inductive core switches. These switches were rated to last for 100 million cycles and had 4.75 mm key travel, compared to 2.79 mm today.
The first electronic keyboards had a typewriter key travel distance of 4.75 mm, keytops were a 12.7 mm high, and keyboards were about 5 cm thick. Over time, less key travel was accepted in the market, finally landing on 2.79 mm. Coincident with this, Key Tronic was the first company to introduce a keyboard which was only about one inch thick. And now keyboards measure only about a half-inch thick.
The use of contact-switch membrane sheets under the monoblock. This technology came from flat-panel switch membranes, where the switch contacts are printed inside of a top and bottom layer, with a spacer layer in between, so that when pressure is applied to the area above, a direct electrical contact is made. The membrane layers can be printed by very-high volume, low-cost "reel-to-reel" printing machines, with each keyboard membrane cut and punched out afterwards.
Control processor
Computer keyboards include control circuitry to convert key presses into key codes that the computer's electronics can understand. The key switches are connected via the printed circuit board in an electrical X-Y matrix where a voltage is provided sequentially to the Y lines and, when a key is depressed, detected sequentially by scanning the X lines.
As direct-contact membrane keyboards became popular, the available rollover of keys was optimized by analyzing the most common key sequences and placing these keys so that they do not potentially produce phantom keys in the electrical key matrix, so that blocking a third key usually isn't a problem. But lower-quality keyboard designs and unknowledgeable engineers may not know these tricks, and it can still be a problem in games due to wildly different and/or configurable key/command layouts in different games.
Connection types
There are several ways of connecting a keyboard to a system unit using cables, including the standard AT connector commonly found on motherboards, which was eventually replaced by the PS/2 and the USB connection. Prior to the iMac line of systems, Apple used the proprietary Apple Desktop Bus for its keyboard connector.
Wireless keyboards have become popular for their increased user freedom. A wireless keyboard often includes a required combination transmitter and receiver unit that attaches to the computer's keyboard port. The wireless aspect is achieved either by radio frequency (RF) or by infrared (IR) signals sent and received from both the keyboard and the unit attached to the computer. A wireless keyboard may use an industry standard RF, called Bluetooth. With Bluetooth, the transceiver may be built into the computer. However, a wireless keyboard needs batteries to work and may pose a security problem due to the risk of data "eavesdropping" by hackers.