If you keep asking why your keyboard stops working randomly, the usual causes are a weak connection (a loose cable, a bad USB port, or low batteries), a power-saving feature that puts the device to sleep, the Filter Keys accessibility setting, or a faulty driver. Work through them in that order, and test the keyboard in your BIOS first so you know whether the hardware or Windows is at fault.
This guide covers Windows laptops and desktops, with checks for wired, wireless and Bluetooth keyboards. Most of the steps are free and take under a minute each.
Step 1: Work out how it fails
The pattern of the failure narrows the cause quickly. Before you change anything, note which of these matches:
| What you see | Most likely cause |
|---|---|
| Whole keyboard dies for a few seconds, then returns | Loose connection, power saving, weak batteries, wireless interference |
| Keys feel ignored, or only slow presses register | Filter Keys (SlowKeys or BounceKeys) is on |
| Only some keys fail, always the same ones | Worn or dirty switches, spilled liquid, or a ribbon cable on a laptop |
| Fails after waking from sleep or after boot | Power management or driver problem |
| Dies when you press or hold a particular key | Stuck key, or a keyboard shortcut toggling something |
| Fails on every computer you try it on | The keyboard itself is failing |
Step 2: Test outside Windows
This is the single most useful test. Restart the computer and open the BIOS or UEFI setup screen (the key is usually Del, F2 or F10, and is shown briefly at startup). Press arrow keys and watch whether the keyboard keeps responding for a few minutes. Alternatively, plug the keyboard into a different computer.
- It still drops out in the BIOS or on another computer: the cause is hardware: the keyboard, its cable, its battery or the port. Skip to the hardware section below.
- It works perfectly there but fails in Windows: the cause is software, so settings, power management and drivers are the places to look.
If you do not have a second keyboard to compare, the on-screen keyboard lets you keep typing while you troubleshoot. See how to open the Windows on-screen keyboard.
Check Filter Keys first (the easy one)
Filter Keys is a Windows accessibility feature. Microsoft's developer documentation describes it as letting a user set the keyboard repeat rate (RepeatKeys), an acceptance delay (SlowKeys) and a bounce rate (BounceKeys). With SlowKeys on, a key must be held for a set number of milliseconds before the computer accepts it, so normal quick typing looks like a dead keyboard. BounceKeys ignores a second press of the same key until a set time has passed after you released it.
The same page documents how it gets switched on by accident: the user can turn Filter Keys on and off by holding down the right Shift key for eight seconds. If your keyboard "stops working" right after you held Shift for a while, or a child or pet leaned on it, this is a strong suspect.
To check, open Settings, go to Accessibility, then Keyboard (on Windows 10 it is under Ease of Access), and make sure Filter Keys is off. Turn off the option that lets the right Shift key start it, so it cannot come back unnoticed. The exact wording of these settings differs between Windows versions.
Wired keyboards: connection and power
A keyboard that disappears and reappears is often losing contact or losing power. Try these in order:
- Change the port. Move the keyboard to a different USB port, ideally one directly on the computer rather than the front panel or a hub. A failing port is a common cause of random dropouts.
- Remove the hub or dock. Unpowered hubs share limited power between devices. Plug the keyboard in directly as a test.
- Inspect the cable and plug. Look for kinks near the connector. Gently wiggle the cable while typing; if the keyboard flickers, the cable or plug is damaged.
- Try another cable if the keyboard has a detachable one, which is common on mechanical keyboards.
USB power saving (selective suspend)
Windows can suspend an individual USB port when the device on it is idle, without affecting other ports. Microsoft's driver documentation says this helps conserve battery power on portable computers, and that selective suspend is enabled by default and that Microsoft strongly recommends not disabling it. A separate Microsoft page on HID devices (keyboards and mice are HID devices) notes that Windows disables USB selective suspend by default for these devices to provide a consistent user experience and avoid resume latency, and that a HID device that supports it must wake without losing the first key press.
In practice, a keyboard whose firmware or driver handles waking badly can still appear to stall. If your keyboard stops after sitting idle and the first presses do nothing, you can test by turning the setting off: open Control Panel, Power Options, Change plan settings, Change advanced power settings, and look for USB settings then USB selective suspend setting. Some systems do not show this option. Treat this as a test only: if it cures the problem, update the keyboard's driver or firmware and consider turning the setting back on, since it saves power.
Wireless and Bluetooth keyboards
- Replace or recharge the batteries. Weak batteries cause intermittent dropouts long before the keyboard dies completely. Fit fresh cells as the first test.
- Move the USB receiver. Plug a 2.4 GHz receiver into a port on the front or into a short extension cable, close to the keyboard. A receiver behind a metal case, or next to a USB 3 device, can suffer interference.
- Remove other radio sources nearby, such as another wireless dongle or a busy Wi-Fi router, while you test.
- Re-pair a Bluetooth keyboard. Remove the keyboard from the Bluetooth device list and pair it again. If it keeps failing, reinstalling the Bluetooth driver can help; see how to reinstall the Bluetooth driver in Windows.
Drivers and Windows settings
If the keyboard works in the BIOS but not reliably in Windows, check the software side:
- Restart the computer (a full restart, not just sleep) to clear a stuck driver state.
- Update or reinstall the driver. Open Device Manager, expand Keyboards, right-click the keyboard, and choose Uninstall device. Restart, and Windows reinstalls the standard driver. For laptops, also install the latest chipset and keyboard-related drivers from the maker's support page. The steps for checking drivers are in how to check if drivers are up to date in Windows.
- Install pending Windows updates, which sometimes include fixes for input devices.
- Look for software that remaps keys or runs macros, such as a vendor utility for gaming keyboards. Close it, or uninstall it as a test.
Laptop keyboards
A built-in keyboard has no cable to swap, so the checks are different. Clean around the keys with compressed air, and think about whether any liquid was ever spilled. If only some keys fail, or the whole keyboard fails when you flex the palm rest, the internal ribbon cable may be loose or the keyboard worn out, and that is a repair job. Plugging in an external keyboard is a good workaround and also confirms the diagnosis: if the external one works perfectly, the built-in keyboard is the problem.
If the mouse also stalls
When the mouse and keyboard stall at the same moment, the shared cause is more likely a USB controller, hub, power setting or a system-wide slowdown than either device. Compare with why a mouse keeps freezing and how to fix it, and try moving both devices to different ports.
When to replace the keyboard
If the keyboard fails in the BIOS, fails on a second computer, and survives a change of cable, port and batteries, it is faulty. Budget keyboards cost little compared with the time spent chasing a dying one. If it is under warranty, ask the maker for a replacement before you throw it away.
Frequently asked questions
- Why does my keyboard stop working for a few seconds and then come back?
- Short dropouts usually point to a power or connection problem: a USB port or cable that is losing contact, a hub that cannot supply enough power, a wireless keyboard with weak batteries, or a power-saving feature that suspends the device. Try a different port, plug the keyboard straight into the computer, and replace the batteries before changing software settings.
- Can Filter Keys make my keyboard seem broken?
- Yes. Filter Keys is a Windows accessibility feature that makes the keyboard ignore brief or repeated keystrokes, so keys can feel dead or slow. Microsoft documents that holding the right Shift key for eight seconds can switch it on, so it is easy to enable by accident.
- How do I tell if the problem is hardware or Windows?
- Test the keyboard where Windows is not involved: enter the BIOS or UEFI setup screen and press keys there, or plug the keyboard into another computer. If it still drops out, the keyboard, cable or port is at fault. If it only fails inside Windows, look at settings, drivers and power management.
- Should I disable USB selective suspend?
- Only as a test. Microsoft says selective suspend is enabled by default and recommends against disabling it, because it saves power. If turning it off stops the dropouts, that points to a device or driver that does not wake properly, and a driver or firmware update is the better long-term fix.