Short answer
A keyboard is used to enter text, numbers, symbols and commands into a device. On a computer it sends your keystrokes to software. On a typewriter it works mechanically, so each key you press prints a character on paper.
What keyboards are used for
On a computer or similar device, a keyboard is typically used to:
- Type text: write documents, emails, messages and code.
- Enter numbers: use the number row or a separate numeric keypad.
- Move around: arrow keys and keys such as Home, End, Page Up and Page Down move the cursor or scroll.
- Edit: Backspace deletes the character to the left, and Delete removes the one to the right.
- Run commands and shortcuts: modifier keys such as Control, Alt, Shift, Command or the Windows key combine with other keys for shortcuts, such as copy and paste.
- Control software: function keys and the Escape key trigger program-specific actions or cancel something.
Phones and tablets usually use an on-screen keyboard instead of physical keys.
What typewriter keyboards were used for
A typewriter keyboard has a narrower job: printing characters on paper. Pressing a key swings a typebar to the page, and a few special keys control spacing, shift, tabs and margins. There is no screen and no editing. See What was the main function of a typewriter? for why that mattered, and Typewriter Keys and Their Functions for the keys themselves.
Computer keyboards inherited their basic layout, including QWERTY, from the typewriter, though the keys work very differently. Details are in Parts and Characteristics of a Typewriter Keyboard.
Other kinds of keyboard
The word is also used for the keys of a piano, organ or synthesizer, where each key plays a note instead of printing a character. In printing, a keyboard can also mean a machine used to set type. Context usually makes the meaning clear.
Learn more
- What the parts of a typewriter are called: Parts of a Typewriter
- Which keys you rest your fingers on: What Are the Guide Keys on a Typewriter?