Start with the simplest fixes first

Most keyboard problems go away after checking three things: whether it's plugged in or charged, whether the right driver is installed, and whether something is physically blocking the keys. Before you buy a replacement, spend ten minutes on these steps—they solve the majority of cases.

If your keyboard is wireless, check that the batteries have charge and that the receiver (the small USB dongle) is plugged into a USB port on your PC. If it's wired, make sure the USB cable is fully seated in the port and try a different USB port on your computer. Sometimes a port stops working, and moving to another one fixes the problem when ready.

Key Takeaways

  • Check that the keyboard is powered (batteries charged or plugged in) and that the USB cable or receiver is fully connected to your PC.
  • Restart your computer after connecting the keyboard, because Windows sometimes needs to detect it again.
  • Look for physical damage, stuck keys, or debris under the keys—compressed air and gentle cleaning often restore function.
  • Update or reinstall the keyboard driver through Device Manager if the hardware is connected but Windows doesn't recognize it.
  • Test the keyboard in BIOS (by restarting and pressing Delete or F2 during startup) to tell whether the problem is hardware or software.

Restart your computer and let Windows detect the keyboard again

After you've confirmed the keyboard is connected, restart your PC completely. During startup, Windows will detect the keyboard and load the driver. This step fixes many problems where the keyboard was connected but Windows lost track of it.

While the computer restarts, you can test the keyboard by pressing keys during the startup screen—before Windows fully loads. If the keys work there, the problem is in Windows or the driver, not the hardware. If they don't work even during startup, the keyboard itself may be faulty or the connection is bad.

Check for physical damage and debris

Look at the keyboard closely. Are any keys visibly cracked or dented? Is there liquid damage, discoloration, or corrosion around the ports? These signs mean the keyboard is likely damaged beyond a straightforward fix and replacement is the practical choice.

If the keyboard looks intact, check whether keys are stuck or stiff. Dust and crumbs often collect under keys and prevent them from moving freely. Use compressed air (the kind sold for cleaning electronics) to blow out debris from between the keys. Hold the can upright and use short bursts. Do not shake the can or hold it upside down, because that can spray liquid.

If a single key is stuck, gently pry off the keycap by sliding a thin, flat tool (like a plastic spoon or old credit card) under one corner and lifting slowly. Clean underneath with compressed air or a slightly damp cloth, then press the keycap back on until it clicks.

Update or reinstall the keyboard driver

Windows uses a driver—a small piece of software—to communicate with your keyboard. If the driver is missing or corrupted, the keyboard won't work even though it's connected. You can check and fix this through Device Manager.

Right-click the Start button and select Device Manager. Look for a category called Keyboards and click the arrow next to it to expand the list. You should see your keyboard listed. If you see a yellow exclamation mark or a question mark next to it, the driver is missing or broken.

Right-click the keyboard entry and select Update driver. Choose Search automatically for updated driver software. Windows will search online and install the correct driver if one is available. After the update finishes, restart your computer.

If updating doesn't work, right-click the keyboard again and select Uninstall device. Restart your computer. Windows will automatically reinstall the driver during startup. This often fixes driver corruption that a straightforward update won't solve.

Test the keyboard in BIOS to isolate the problem

BIOS is the lowest level of your computer's software—it runs before Windows loads. If your keyboard works in BIOS but not in Windows, the problem is software. If it doesn't work in BIOS either, the keyboard or its connection is faulty.

Restart your computer and when ready press Delete or F2 repeatedly as it starts up (the key varies by manufacturer—you'll usually see a message on the startup screen saying which key to press). This takes you into BIOS setup. Try pressing arrow keys and numbers. If they work, restart normally and focus on fixing the driver or Windows settings. If they don't work, the keyboard hardware is the problem.

Disable and re-enable the keyboard in Device Manager

Sometimes Windows stops communicating with the keyboard even though the driver is installed. Disabling and re-enabling it forces Windows to reinitialize the connection.

Open Device Manager again, find your keyboard under the Keyboards category, right-click it, and select Disable device. Wait a few seconds, then right-click it again and select Enable device. Windows will reconnect to the keyboard. Test it when ready.

Try the keyboard on another computer

If you have access to another PC, connect your keyboard to it. If the keyboard works on the other computer, your keyboard is fine and the problem is with your PC's settings or ports. If it doesn't work on the other computer either, the keyboard is faulty and needs replacement.

This test is the fastest way to know whether you're troubleshooting software or hardware. It also tells you whether a USB port on your PC is broken—if the keyboard works on another computer but not yours, try plugging it into a different USB port on your PC.

When to replace the keyboard

If you've worked through these steps and the keyboard still doesn't respond, or if you found physical damage during inspection, replacement is the practical choice. Keyboards are inexpensive and widely available. A wired USB keyboard costs between $15 and $50 depending on features. Wireless keyboards typically cost $25 to $80.

Before you buy, note whether you prefer wired or wireless, and whether you want standard keys or mechanical switches (which feel different and are popular for typing and gaming). Test the replacement keyboard on your PC as soon as you receive it to confirm it works.

Frequently Asked Questions

Why does my keyboard work sometimes but not always?

Intermittent problems usually mean a loose connection or a driver that's partially corrupted. Try a different USB port first. If that doesn't help, uninstall and reinstall the driver through Device Manager. Wireless keyboards with weak batteries can also behave this way—try fresh batteries.

My keyboard is wireless and won't connect. What do I do?

Check that the batteries have charge by replacing them with new ones. Make sure the USB receiver is plugged into a port on your PC, not into a hub or extension. Some wireless keyboards have a pairing button on the bottom—press it and then press the pairing button on the receiver. If that doesn't work, uninstall the keyboard in Device Manager and restart your PC.

One key doesn't work but the rest of the keyboard is fine. Can I fix it?

Try removing the keycap and cleaning underneath with compressed air. If the key still doesn't work after cleaning, the switch underneath is likely broken. You can replace individual keys on mechanical keyboards, but on most standard keyboards, replacing the whole keyboard is more practical than repairing a single key.

How do I know if it's a hardware problem or a software problem?

Test the keyboard in BIOS by restarting and pressing Delete or F2 during startup. If keys work in BIOS but not in Windows, it's a software or driver problem. If they don't work in BIOS either, the keyboard hardware is faulty.

Can I use an on-screen keyboard while I fix the problem?

Yes. Right-click the Start button, select Settings, go to Accessibility, then On-screen keyboard, and toggle it on. You can click keys with your mouse while you troubleshoot the physical keyboard. This lets you work while you update drivers or test solutions.