Keyboard — Primary Input Device
The main way you type, command, and control your computer. Explore it in the interactive 3D viewer below, with the key facts about how it works and how it fits into a PC build.
By PC Anatomy contributors · Published 2026-08-11 · Updated 2026-11-12
What Is a Keyboard?
A computer keyboard is the primary text and command input device, converting key presses into scancodes that the operating system turns into characters, shortcuts, and actions.
The keyboard is the primary text and command input device. Each key press closes a switch that the keyboard controller converts into a scancode, which the operating system translates into characters, shortcuts, and actions.
What Does a Keyboard Do?
A keyboard enters text and characters, triggers shortcuts and macros, provides input for gaming and navigation, and supports accessibility features like sticky keys and remapping.
- Enter text and characters through key presses.
- Trigger shortcuts and macros for speed.
- Provide input for gaming and navigation.
- Support accessibility features like sticky keys and remapping.
How Does a Keyboard Work?
Each key press closes a switch that the keyboard controller detects and converts into a scancode, which is sent over USB or wireless and translated by the operating system. Mechanical keyboards register each press with an independent switch, while membrane keyboards use a single rubber sheet.
Example Specifications
These values illustrate a common desktop setup. Specifications vary by model; check the manufacturer’s documentation before choosing or installing hardware.
| Layout | Full / TKL / 75% |
|---|---|
| Switch Type | Mechanical |
| Connection | USB-C / 2.4 GHz / BT |
| Backlight | Per-key RGB |
| Key Count | 104 |
Switch Types
Mechanical switches (linear, tactile, or clicky) give each key an independent mechanism and are durable and precise. Membrane keyboards are quieter, thinner, and cheaper but feel mushier and wear faster.
Keyboard Layouts
Full-size keyboards include the numpad, tenkeyless (TKL) layouts drop it for desk space, and 75%/65% compact layouts keep arrow keys and function rows. Smaller layouts need layers to reach missing keys.
Rollover and Latency
Full N-key rollover registers over 100 simultaneous key presses, which matters for fast typing and games. Wired connections have the lowest latency, followed by 2.4 GHz wireless and Bluetooth.
Keyboard in a PC Build
The keyboard is a plug-and-play peripheral that works with any PC over USB, 2.4 GHz wireless, or Bluetooth. Mechanical switches, keycap layouts, and per-key RGB lighting are the main choices for typing comfort and gaming.
From writing documents to controlling games, the keyboard is where most computer work begins. Mechanical boards offer tactile feedback, while low-profile membranes keep laptops thin and quiet.
Related Computer Components
Every part of a computer works together. Learn how the Keyboard connects with the rest of the system:
References and further reading
Frequently Asked Questions
What does a keyboard do?
A keyboard is the main input device for typing and commands. Each key press closes a switch, and the keyboard controller converts it into a scancode the operating system translates into characters and actions.
What is the difference between mechanical and membrane keyboards?
Mechanical keyboards have an independent switch under every key, giving crisp feedback, durability, and hot-swappable options. Membrane keyboards use a rubber sheet and are cheaper, quieter, and thinner.
What is N-key rollover?
N-key rollover lets a keyboard register many simultaneous key presses at once — up to all keys at once. It prevents ghosting during fast typing and gaming combinations.
Explore the Keyboard in 3D
Use the interactive viewer to rotate, zoom, and inspect the Keyboard. Drag to orbit, scroll to zoom, and use the toolbar to reset the camera.
