How to detect a key that stays pressed
Use a browser keyboard test to check whether a key keeps registering after release, then find out whether the cause is dirt, software, or hardware.
A key that keeps acting pressed after you let go can make a game character keep moving, repeat a letter, or trigger shortcuts you did not mean to use. The cause might be a dirty or damaged key, an accessibility setting, or an app that is handling input incorrectly.
Start by checking the keyboard outside the app where you noticed the problem. The Keyboard Test checks whether keys register and helps you see if the problem follows one key or affects several.
Check whether the key releases
- Open the Keyboard Test and click in its test area so it can receive key presses.
- Press the suspect key once, then lift your finger completely. Watch the on-screen keyboard as you press and release. The key should register when pressed and return to its unpressed state when released.
- Wait a few seconds without touching the keyboard. Check whether the key appears to remain active or keeps producing input.
- Repeat the same check several times, then test a nearby key. If you use an external keyboard, compare it with the built-in keyboard or another keyboard if available.
- Test the key in the app where you first noticed the issue. If the browser test looks normal but that app keeps repeating input, the problem may be in the app or its settings.
Some keys are handled by the operating system before they reach a browser. The Fn key, the Windows key, Print Screen, and many laptop brightness, volume, and Wi-Fi shortcuts may not appear in an online keyboard test. Use a letter, number, or another ordinary key to check for a general stuck-key problem.
What the result means
The key returns to normal after each press
The keyboard is reporting a press and release normally in the browser. If the issue happens only in one game or app, check that app's key bindings and input settings, then close and reopen it. A stuck movement or modifier key can also be caused by a shortcut the app keeps active.
The same key stays active in the test
If the test continues to show the key as pressed after you release it, repeat the check after cleaning around the key and reconnecting the keyboard. If the symptom remains on that same physical key, a sticky mechanism, debris, or a failing switch is likely.
Several keys act pressed or repeat together
Check whether a modifier key such as Ctrl, Alt, Shift, or the Windows key is stuck. A held modifier can make ordinary keys behave like shortcuts. If it happens with multiple keyboards or only in one app, software or accessibility settings are more likely than several failed keys.
The key repeats, but does not stay active in the test
Repeated characters are not always a stuck key. Most computers automatically repeat a character if you hold a key down. A key that repeats after a very brief tap may have a sensitive or bouncing switch, or the operating system may have a repeat setting that does not suit you.
How to fix it
- Release the key and check for a held modifier. Press and release Shift, Ctrl, Alt, and the Windows key one at a time. On a Mac, check Shift, Control, Option, and Command. Then test the problem key again.
- Check accessibility keyboard settings. On Windows 11, open Settings › Accessibility › Keyboard and review Sticky Keys and Filter Keys. On a Mac, open System Settings › Accessibility › Keyboard and review Sticky Keys and Slow Keys. Turn off any option you do not use, then test again.
- Clean around the key safely. Shut down the computer or disconnect the keyboard. Follow the manufacturer's cleaning instructions, and use a soft brush or compressed air around the key. Do not pour liquid into the keyboard or force a laptop keycap off.
- Reconnect an external keyboard. Unplug a USB keyboard and connect it directly to another port. For a wireless keyboard, check its battery, switch it off and on, and reconnect it using the manufacturer's normal pairing steps.
- Check the app and restart the computer. Close the app where the problem appeared and test again in the browser. If several apps are affected, restart the computer to clear software that may be holding an input state.
When the keyboard itself is faulty
If the same physical key remains active in the test after cleaning and reconnecting the keyboard, try that keyboard on another computer. If the key still sticks there, the problem is in the keyboard. A desktop keyboard may be repairable or replaceable. For a laptop, check the warranty before arranging a repair, since replacing a built-in keyboard can require opening the computer.
If a different keyboard works normally on the same computer, that is another strong sign that the original keyboard or its connection is the cause. If both keyboards show the same behavior, keep investigating system settings or software instead of replacing hardware.
Key repeat is different from a stuck key
When you hold a key down, the operating system usually sends the character once, waits briefly, and then repeats it. That is normal key repeat. A key that stays logically pressed after you lift your finger is different: the computer has not received, or has not handled, the release event correctly.
A browser test can check ordinary keyboard input, but it cannot inspect the physical switch or every key handled by the operating system. Compare the test with another keyboard and with the app where the symptom occurs to narrow down where the fault starts.
