Keyboard test
A key not responding? Press them all: working keys light up on the keyboard below.
Press the keys on your physical keyboard: working keys light up green and stay highlighted. Goal: light them all.
How the test works
Every press fires an event carrying the physical key's code: the tool uses it to light the matching key. If you press a key and nothing happens (here or in a text editor), the key or its membrane is probably faulty.
Keys that seem dead but are fine
Fn produces no event at all (it's handled in hardware), PrtSc and brightness keys are often intercepted by the OS (volume keys usually reach the browser), and combos like Ctrl+T or Ctrl+W are kept by the browser. On Windows, AltGr also lights left Ctrl: press it on its own to truly test it. The layout shown is standard ANSI: labels may differ from your keyboard — physical position is what counts.
Before you replace it
If a key is dead: power off, gently remove the keycap and clean with compressed air — often it's just a crumb. On a laptop under warranty, a dead key is a covered defect.