Laptop keyboards fail in a small number of ways, and liquid is only one of them. Most of the failures people describe as random are in fact one of three mechanisms, each with a recognisable pattern. Knowing which one you have determines whether this is a five minute fix or a top case replacement.
How a laptop keyboard is built
Almost every laptop keyboard is a membrane design. Under the keycaps sit three thin plastic layers: two carrying printed conductive traces and one insulating layer between them with holes at each key position. Pressing a key pushes the top layer through the hole to touch the bottom one, closing a circuit. The whole stack connects to the mainboard through a flexible ribbon cable.
What varies between machines is the mechanism above the membrane. Scissor mechanisms use two interlocking plastic arms for stability and short travel. Butterfly designs, used on some laptops in the late 2010s, used a single hinged piece for a thinner profile and proved unusually sensitive to debris. A small number of laptops use genuine mechanical switches, which are more serviceable and far less common.
The membrane is the part that fails electrically. The mechanism is the part that fails mechanically. They are replaced together on most machines because the keyboard is riveted or bonded into the top case, which is why keyboard repairs cost more than the part suggests.
The three failure patterns
- One key stops responding, everything else is fine. This is almost always debris or a damaged mechanism at that key position, not an electrical fault. If the key feels different when pressed, it is mechanical. If it feels normal but registers nothing, the membrane contact at that position has failed, which is less common but does happen with heavy use on frequently pressed keys.
- A row or a cluster fails together. Membranes are wired as a matrix of rows and columns, so a break in one trace kills everything on that line. A whole row failing simultaneously points to a trace break or a partially seated ribbon cable, not to the keys themselves. This is the pattern that follows a liquid spill, sometimes weeks later, as corrosion spreads along a trace.
- The entire keyboard stops working. Usually the ribbon cable, its connector, or the controller. If an external keyboard works normally, the rest of the machine is fine and the fault is in the internal keyboard path. Intermittent whole-keyboard failure that changes when you flex the chassis is a connector problem, and connectors can sometimes be reseated.
What liquid actually does
The immediate risk from a spill is a short circuit while the machine is powered. The longer term risk is corrosion, and that is what catches people out, because a laptop that survived a spill and worked for two weeks can fail afterwards as corrosion eats through a trace or a solder joint.
Sugary and acidic liquids are considerably worse than water because they leave a conductive, corrosive residue behind after the water evaporates. A spill of plain water that is dealt with immediately often causes no lasting damage. The same volume of a soft drink frequently does.
If it happens: power off immediately by holding the power button, disconnect the charger, and turn the machine upside down in a tent shape so liquid drains away from the board rather than into it. Do not power it on to check. Do not use a hairdryer, which drives liquid further in and can warp plastic. Leave it inverted for at least 48 hours. Rice does nothing useful and leaves dust and starch behind.
The honest position is that a spill beyond a small amount of water needs the machine opened and the affected area cleaned properly, and that is a service job. Liquid damage is excluded from essentially every manufacturer warranty, and most laptops contain moisture indicators that make the cause obvious to a technician.
What you can fix yourself
- Confirm it is hardware. Connect an external keyboard. If that works and the internal one does not, the fault is in the keyboard path. If neither works, the problem is elsewhere. Distinguishing the two is the same diagnostic discipline used in the used laptop inspection checklist.
- Check the obvious software causes. A stuck modifier key, an accidentally changed input language, or filter key accessibility settings all produce behaviour people read as hardware failure. Rule these out before opening anything.
- Clear debris under a single key. With the machine off, use a soft brush and short bursts of air at an angle. On scissor mechanisms a keycap can usually be removed by lifting one edge gently with a plastic tool, but the retaining clips are fragile and break easily. If you are not confident, leave the cap on and work around it.
- Reseat the ribbon cable. Only if you are already comfortable opening the machine. The connector is a fine pitch latching type and is easy to damage. This is worth attempting for a whole-keyboard failure and pointless for a single key.
- Use an external keyboard as a bridge. Entirely legitimate. If the machine is otherwise healthy and a top case replacement is expensive, an external keyboard buys you time to make the repair decision properly.
Heat, and why keyboards fail near other faults
Keyboard membranes sit directly above components that generate heat. A machine that has run hot for years subjects the membrane and its adhesive to repeated thermal cycling, which is one reason keyboard faults sometimes appear alongside other heat related symptoms. If the machine has become louder or hotter over its life, the article on what the fan is telling you is worth reading alongside this one, and the mechanics of sustained heat are run through under thermal throttling.
A swelling battery is the other neighbour worth knowing about. Because the cell usually sits under the keyboard deck, swelling lifts the keyboard and produces keys that feel stiff, sit unevenly, or stop pressing properly. If keys have become hard to press and the chassis no longer sits flat, stop using the machine and have the battery checked. That is a safety issue rather than a keyboard issue.
When it is worth replacing
On most laptops the keyboard is part of the top case assembly, which also carries the trackpad and often the battery. That makes it a significant repair in labour terms even though the part itself is not especially expensive. Because the battery frequently comes out during the same job, it is often sensible to replace both at once if the battery is also worn. The economics of that combined decision are worked talked through under deciding whether a laptop is worth repairing.
Frequently asked questions
Why did one key stop working?
Most often debris under the mechanism or a broken retaining clip, both of which change how the key feels. If the key feels completely normal and simply does not register, the membrane contact at that position has failed, which needs a keyboard replacement rather than a clean.
Can a laptop keyboard be replaced?
Yes, but on the majority of modern laptops it is riveted or bonded into the top case, so the whole assembly is replaced. That makes the labour cost dominant. A minority of machines use a separately removable keyboard, which is a much cheaper repair. Check the service documentation for your specific model.
What do I do after spilling liquid on a laptop?
Power it off immediately by holding the power button, disconnect the charger, and invert it in a tent shape so liquid drains outward. Leave it at least 48 hours before attempting to power it on. Do not use heat and do not use rice. Anything beyond a small water spill should be opened and cleaned professionally, because residue causes corrosion later.
Will an external keyboard work if the internal one fails?
Yes, in almost every case, because they use entirely separate input paths. This is also the fastest way to confirm the fault is the internal keyboard rather than something further along in the system.
