Skip to main content
infervour.com

Back to all posts

How Does A Mechanical Keyboard Work?

Published on
6 min read

Table of Contents

Show more
How Does A Mechanical Keyboard Work? image

A mechanical keyboard is a type of keyboard that uses mechanical switches underneath the keycaps to register key presses. Unlike traditional rubber dome keyboards, which use a rubber sheet or dome-shaped switches to register inputs, mechanical keyboards use individual mechanical switches for each key.

At the core of a mechanical switch lies a spring-loaded mechanism. When a key is pressed, the keycap pushes down on a switch, compressing the spring inside it. This action completes an electrical circuit and sends a signal to the computer indicating that the key has been pressed. Upon release, the spring pushes the key back up, breaking the circuit and registering the key release.

There are different types of mechanical switches, each with its unique characteristics and feel. Commonly used mechanical switches include the Cherry MX, which offers different colors like Red, Blue, Brown, and Black. Each color corresponds to a different switch feel, such as linear, tactile, or clicky feedback.

The keycaps are usually made from durable materials like plastic or PBT (polybutylene terephthalate). They are mounted on top of the mechanical switches and are easily removable, allowing users to replace them with custom keycaps if desired.

Mechanical keyboards offer several advantages over rubber dome keyboards. They provide a more satisfying and precise typing experience due to the tactile feedback and distinct actuation point of each switch. They also tend to be more durable and long-lasting, as the switches are designed to withstand millions of keystrokes, making them popular among typists, gamers, and enthusiasts.

Additionally, mechanical keyboards often support features like n-key rollover, which means that the keyboard can register multiple key presses simultaneously, ensuring all inputs are detected accurately.

In summary, a mechanical keyboard functions by using individual mechanical switches underneath the keycaps to register key presses. The physical action of pressing and releasing a key triggers an electrical circuit, sending a signal to the computer. The different switch types and materials used determine the feel, sound, and durability of the keyboard, offering users a more enjoyable typing or gaming experience.

What is the purpose of switches in a mechanical keyboard?

The purpose of switches in a mechanical keyboard is to register keystrokes when a key is pressed. Switches are responsible for determining the actuation point and the tactile feedback of each key. They consist of a housing, a spring, and a stem that contains electrical contacts. When a key is pressed, the stem compresses the spring, closing the electrical contacts and sending a signal to the computer to register the keystroke. Switches come in various types, each offering different levels of actuation force, tactile feedback, and noise level. They provide a more satisfying typing experience compared to the membrane or rubber dome switches found in most conventional keyboards. Additionally, mechanical switches are known for their durability and can withstand millions of keystrokes.

How do Cherry MX switches work?

Cherry MX switches are mechanical switches commonly used in keyboards. Here is a simplified explanation of how they work:

  1. Internal Components: Each Cherry MX switch consists of several components, including a stem, spring, housing, and metal contacts.
  2. Key Press: When you press a key on a keyboard, it pushes down the stem of the Cherry MX switch.
  3. Actuation Point: As the stem is pushed down, it comes in contact with a metal leaf contact in the switch housing. This metal contact has a specific actuation point, which is the point at which the switch registers that a key has been pressed.
  4. Tactile Feedback: Depending on the type of Cherry MX switch, there may be a tactile bump or click when the stem passes the actuation point, giving users a clear indication that the key press has been registered.
  5. Electrical Connection: Once the key press is registered, the metal leaf contact makes an electrical connection between two metal contacts in the housing, completing an electrical circuit.
  6. Release and Reset: When you release the key, the spring inside the switch pushes the stem back up, separating the metal contacts, and breaking the electrical connection.

Overall, Cherry MX switches provide a mechanical and tactile feel when typing, offering users a more precise and responsive experience compared to traditional rubber domes found in membrane keyboards.

How does key rollover work in mechanical keyboards?

Key rollover, often referred to as KRO, is a feature in mechanical keyboards that determines how many keys can be pressed simultaneously and still register correctly. This capability ensures that no keystrokes are missed or ignored during fast typing or intense gaming sessions, where multiple keys may be pressed at the same time.

Mechanical keyboards offer different levels of key rollover, such as 2-key rollover (2KRO), 6-key rollover (6KRO), and even full n-key rollover (NKRO). Let's explore how key rollover works in mechanical keyboards:

  1. Scanning Matrix: Mechanical keyboards use a scanning matrix to identify keypresses. The matrix is made up of rows and columns, with each key corresponding to a unique intersection.
  2. 2-Key Rollover (2KRO): This basic rollover capability allows the keyboard to recognize and register only up to two simultaneous key presses at most. If a third key is pressed while two keys are already registered, it will be ignored.
  3. 6-Key Rollover (6KRO): Most mechanical keyboards provide 6KRO by default. This means that up to six keys can be pressed and registered correctly at once. If a seventh key is pressed, it won't be detected until at least one of the previous six keys is released.
  4. N-Key Rollover (NKRO): Some high-end mechanical keyboards offer NKRO, which means all keys can be pressed simultaneously and registered correctly. NKRO achieves this by using diodes in the keyboard's circuitry, which allows each key to have its own electrical pathway and prevents ghosting (undesired keystrokes). NKRO is particularly beneficial for gamers and programmers who often require complex key combinations.
  5. USB Limitations: The type of key rollover achievable also depends on the keyboard's connectivity. USB keyboards often have constraints due to USB's 6-key rollover limit. To bypass this limitation and achieve NKRO, keyboard manufacturers may implement additional software or hardware, such as USB-to-PS/2 adapters or dedicated software drivers.

In summary, key rollover in mechanical keyboards determines how many simultaneous key presses can be detected and registered accurately. From the basic 2KRO to more advanced NKRO, different rollover capabilities cater to varying user needs, ensuring smooth and reliable performance during intense typing or gaming activities.