Keyboard

The keyboard is the primary input device: each press is detected in a key matrix, converted to a scan code, and mapped to a character code (ASCII), organised in zones you should be able to name.

8 min read · 9 cards · 2 checks

Read in: English · हिन्दी · ગુજરાતી


Theory

104 keys, and you use forty

Watching Chirag bill a customer, you notice he never looks down: his fingers find every key blind.

Later he challenges you: "Count the keys." A standard keyboard has about 104. Now count the ones you actually use... perhaps forty.

So what are the other sixty for, and what actually leaves the keyboard when a key goes down? Both questions are exam material, and the second one connects straight back to ASCII.

Theory

A hall of doorbells

Under the keys lies a grid of circuits, like a hall with 104 doorbells wired to one guard. Press a key and its circuit closes: the guard (the keyboard's controller chip) sees exactly WHICH bell rang and sends its number onward. The keyboard never sends the letter A anywhere; it reports "bell number so-and-so rang", and software does the rest.

Theory

The zones exams ask you to label

  • Alphanumeric zone: letters, digits, punctuation, the typewriter heart.
  • Function keys F1 to F12: shortcuts whose meaning each program defines (F1 = help, F5 = refresh).
  • Numeric keypad: calculator-style block on the right, beloved by accountants.
  • Navigation keys: arrows, Home, End, Page Up/Down.
  • Modifier keys: Shift, Ctrl, Alt; they type nothing alone, they change what other keys mean.
  • Special keys: Enter, Backspace, Esc, the spacebar.

Theory

From press to letter

The journey of one keypress:

press → key matrix senses the closed circuit → controller sends a scan code → OS maps it to a character code → the app receives 'A' (ASCII 65)

This is why the same physical keyboard can type Gujarati or Hindi after a software switch: the hardware only ever reports which key; the mapping to characters is software's job.

And QWERTY's odd letter order? Inherited from typewriters, whose jamming arms needed common letter-pairs spaced apart. Habit kept it alive.

Quiz

You press Shift and nothing appears on screen. Why is Shift still called an input key?

  1. It modifies the meaning of the next key pressed with it
  2. It is actually broken on most keyboards
  3. It only works inside games
  4. It types an invisible character
Show the answer

It modifies the meaning of the next key pressed with it

Modifiers (Shift, Ctrl, Alt) send their own signals, but their job is changing OTHER keys: a becomes A, 1 becomes !. Nothing prints because their meaning is combinational, not because nothing happened. Classifying modifier keys correctly is a small guaranteed exam mark.

Think first

Connect the wires

Using the ASCII lesson: when you press the A key (with Shift held), what NUMBER finally reaches the application? And with Shift released?

Show the answer

With Shift: 65, ASCII for capital A. Without: 97, small a, exactly 32 apart, the case gap you memorised. The keyboard sent the same physical key code both times; the modifier state told the OS which character code to deliver. Hardware reports keys; software decides characters.

Watch out

Where marks leak

Writing "the keyboard sends letters to the computer": it sends codes (scan codes, mapped to character codes). Calling Shift/Ctrl/Alt "typing keys": they are modifiers. And in zone-labelling diagrams, students regularly swap function keys with navigation keys; F1-F12 sit in a row along the top.

Theory

Why this matters beyond the exam

In C programming next semester, getchar() and getch() hand you exactly these character codes, and the difference between reading a key and reading a character will matter. Meanwhile, learn five shortcuts like Chirag: Ctrl+C, Ctrl+V, Ctrl+Z, Ctrl+S, Alt+Tab. They are modifiers earning their keep, and they will save you hours every week for the rest of your career.

Summary

Key takeaways

  • The keyboard is the primary input device, ~104 keys in named zones.
  • Zones: alphanumeric, function keys, numeric keypad, navigation, modifiers, special keys.
  • A press travels as codes: key matrix → scan code → character code (ASCII).
  • Modifiers type nothing; they change other keys' meaning (a → A).
  • QWERTY's layout is a typewriter inheritance.
  • Memory hook: a hall of doorbells; the keyboard reports which bell, never the letter.

Study this properly

This page is the lesson to read. In Gri-Learn the same topic is a graded deck: the self-checks are scored and your weak topics are tracked. Free to start.

Start this topic

Already have an account? Sign in

More from Input & Output Devices

Gri-Learn · syllabus-mapped B.C.A. lessons in English, Hindi and Gujarati

Keyboard · Introduction to Computers · Gri-Learn