When a Spectrum starts but some or all of its keys don’t work, the keyboard membrane is by far the most likely cause. The membrane is a sandwich of plastic sheets printed with conductive tracks, and its two ribbon tails crack with age, usually right where they enter the sockets on the board.
How the keyboard works
The 40 keys are wired as a grid of eight half-rows of five keys. The eight half-rows connect to the board through the 8-way tail (socket KB2), which links each half-row through a diode (D1–D8) to one of the Z80’s address lines, A8–A15. The five keys in each half-row connect through the 5-way tail (socket KB1) to the ULA. To read the keyboard, the computer drives one address line low at a time and the ULA reports which of that half-row’s five keys are down.
| Half-row | Address line | Port | Keys |
|---|---|---|---|
| 1 | A8 | 65278 | CAPS SHIFT, Z, X, C, V |
| 2 | A9 | 65022 | A, S, D, F, G |
| 3 | A10 | 64510 | Q, W, E, R, T |
| 4 | A11 | 63486 | 1, 2, 3, 4, 5 |
| 5 | A12 | 61438 | 0, 9, 8, 7, 6 |
| 6 | A13 | 57342 | P, O, I, U, Y |
| 7 | A14 | 49150 | ENTER, L, K, J, H |
| 8 | A15 | 32766 | SPACE, SYMBOL SHIFT, M, N, B |
What the fault pattern tells you
- A block of five keys dead (a whole half-row from the table): a broken track in the 8-way tail, or its socket or diode.
- A block of eight keys dead (the same position in every half-row, such as 1, Q, A, CAPS SHIFT and so on): a broken track in the 5-way tail.
- Nothing works, or it acts as if a key is held down: a short between tracks, which holds one key on and disables the rest. Check the membrane, then the sockets for dirt, the diodes D1–D8 and the ULA.
Testing it
From BASIC
PRINT IN 65278 reads the first half-row; use the other ports in the table for the rest. With no key pressed, bits 0–4 read 1; pressing a key clears its bit. A loop makes it easy to watch:
10 PRINT AT 0,0;IN 65278;" "
20 GOTO 10
With a multimeter
Unplug the tails from the board (see Cleaning a ZX Spectrum for opening the case) and set the meter to continuity. Each key, when pressed, should connect one contact of the 5-way tail to one contact of the 8-way tail. Work through the keys in a dead block: if no key in the block connects, follow that track back along the tail and look for a crack.
The Spectrum also starts with the keyboard unplugged, showing the copyright message, so if a fault disappears with the tails out, the problem is in the membrane rather than on the board. A diagnostic ROM such as ZX Diagnostics has a keyboard test too (hold K at switch-on).
Fixing it
- A crack near the end of a tail: you can trim up to about an inch off the damaged end, then carefully strip the insulating layer back about a quarter of an inch so the tracks make contact in the socket. It buys time; it isn’t a permanent fix.
- Anything else: fit a new membrane. Reproductions are cheap, and an old membrane that has cracked once will usually crack again.
- A tail pressing on the TV modulator can upset the keyboard: put a layer of tape or foam over the modulator.
- A new membrane that’s loose in the sockets: some reproductions are thinner. Stiffen the end of the tail with a strip of thin plastic on the back, or replace the sockets.
Fitting a new membrane
- Undo the five screws underneath and lift the top half, then unplug both tails by pulling them straight out, close to the board.
- Lift the metal faceplate (see the faceplate guide), then lift out the rubber keymat and the old membrane, which sits on locating pins.
- Fit the new membrane over the pins, pass its tails through the slots in the case, and refit the keymat and faceplate.
- Push the tails straight into their sockets, and make sure neither is folded double when the case closes.
The Spectrum+ is different: eight screws, and a three-layer membrane with clamped tails. Leave a little slack in the tails so the clamps don’t distort the membrane.
See the fault finder for other symptoms.