USB Keyboard Not Recognized: 8 Fixes for Windows and Mac
You plug in your USB keyboard and nothing happens — no key presses register, no "device connected" sound, no entry in Device Manager. This guide covers the 8 most effective fixes, ordered from fastest to most involved, for both Windows and Mac. In most cases, one of the first three fixes resolves it.
Quick Diagnosis
- Keyboard works on a different computer → Port, driver, or power management issue on your PC
- Keyboard doesn't work on any computer → Damaged USB cable or failed keyboard hardware
- Keyboard worked before and stopped suddenly → Windows update changed USB power settings or corrupted HID driver
- Keyboard appears in Device Manager with a yellow flag → Driver conflict — uninstall and replug
Fix 1: Try a Different USB Port
Before anything else, move the keyboard to a different USB port — preferably a port directly on the motherboard, not through a hub. USB ports can fail individually, especially front-panel ports wired through header connectors. If your keyboard works in a different port, the original port has a hardware or driver issue.
If you're using a USB hub, remove the hub and plug the keyboard directly into the PC. Hubs can fail, lose power, or have firmware issues that prevent device enumeration. A USB keyboard needs very little power (under 100mA), but a failing hub may not enumerate it correctly even with adequate power.
Important: USB 2.0 vs 3.0 Ports
Try both USB 2.0 (black ports) and USB 3.0 (blue ports) on your PC. Some USB keyboards have compatibility quirks with USB 3.0 controllers — plugging into a USB 2.0 port resolves it. Conversely, some USB 3.0 controllers have a legacy USB 2.0 fallback that doesn't initialize properly on powered-on systems. If one type doesn't work, try the other.
Fix 2: Restart the Computer (Don't Just Log Off)
This sounds obvious but it works for a specific reason: Windows "Fast Startup" (enabled by default since Windows 8) doesn't fully reboot the kernel. USB host controllers aren't fully reset during a Fast Startup. A full restart — Start → Power → Restart (not Shutdown) — forces the USB controller to re-initialize from scratch.
If Restart is greyed out or unavailable because you have no keyboard, hold the power button on your PC for 5 seconds to force a cold shutdown, then press it again to power on.
Fix 3: Check Device Manager for Errors (Windows)
Device Manager shows exactly what Windows sees when you plug in a device. Here's how to access it without a keyboard:
- Right-click the Start button → Device Manager (or use a spare mouse to navigate)
- Look under Human Interface Devices and Keyboards for any device with a yellow exclamation mark (!) or question mark (?)
- Right-click the flagged device → Update driver → Search automatically for drivers
- If that fails: right-click → Uninstall device → confirm → unplug and replug the keyboard
Also expand Universal Serial Bus controllers. Look for "Unknown USB Device" or "USB Device" with a yellow flag — this indicates a port-level problem. Right-click and uninstall all flagged USB entries, then restart. Windows will reinstall fresh USB controller drivers on the next boot.
Pro Tip: Enable "Show Hidden Devices"
In Device Manager, go to View → Show hidden devices. Ghost HID devices (from previously plugged-in keyboards) can conflict with a new keyboard trying to enumerate on the same driver slot. Delete any greyed-out HID Keyboard Device entries, then replug your keyboard.
Fix 4: Disable USB Selective Suspend (Windows)
USB Selective Suspend is a Windows power-saving feature that cuts power to USB devices when they're "idle." The problem is that keyboards aren't always recognized as active when locked or sleeping, so Windows can cut power to the USB port — and the keyboard never wakes up correctly.
To disable it:
- Control Panel → Power Options → Change plan settings → Change advanced power settings
- Expand USB settings → USB selective suspend setting
- Set both "On battery" and "Plugged in" to Disabled
- Click OK and restart
On laptops: there's also a per-port USB power management setting. Device Manager → Universal Serial Bus controllers → each USB Root Hub → Properties → Power Management → uncheck "Allow the computer to turn off this device to save power." Do this for every USB Root Hub entry.
Once your keyboard is recognized, use our tester to confirm every key registers correctly — no dead keys, no stuck keys.
Fix 5: Enable USB Legacy Support in BIOS/UEFI
If your keyboard doesn't respond at all — including during boot before Windows loads — the BIOS/UEFI may have USB Legacy Support disabled. This setting allows USB keyboards to work in DOS/pre-OS environments. Without it, some systems don't pass keyboard input during startup, and Windows inherits that state.
To access BIOS on most systems: restart and press DEL, F2, or F12 during the manufacturer splash screen (the key varies by brand — check your motherboard manual). Look for:
- Advanced → USB Configuration → USB Legacy Support — set to Enabled
- Advanced → USB Configuration → EHCI Hand-off — set to Enabled
Save and exit BIOS (usually F10). If you can't access BIOS because no keyboard works, try a PS/2 adapter with a USB-to-PS/2 converter — most modern BIOSes still initialize PS/2 input first, and a PS/2 keyboard will let you navigate to enable USB legacy support.
Fix 6: Fix USB Keyboard Not Recognized on Mac
On macOS, USB keyboards are handled differently. Here's what to check:
Check System Information: Apple menu → About This Mac → System Information → Hardware → USB. Your keyboard should appear under the USB tree. If it shows here but doesn't type, it's a driver or permission issue. If it doesn't appear at all, the Mac isn't detecting it at the hardware level.
- Try different USB-C ports or a different hub. M1/M2/M3 Macs with USB-C only — hubs and adapters vary in quality. Try a different USB-C hub or plug directly into a port on the Mac.
- Reset SMC (Intel Macs only). Shut down → hold Shift + Control + Option + Power for 10 seconds → release → power on. SMC controls USB power delivery on Intel Macs.
- Apple Silicon Macs: Simply shut down (not restart), wait 30 seconds, then power on. The equivalent of an SMC reset happens automatically.
- Check Keyboard Setup Assistant. System Settings → Keyboard. If the Mac detected the keyboard but hasn't set it up, it may be waiting for input. Look for a Keyboard Setup Assistant prompt.
- Check Accessibility permissions. System Settings → Privacy & Security → Accessibility. Some third-party keyboard software requires accessibility permission to pass keystrokes to other apps.
Fix 7: Clean the USB Connector
Debris, dust, and corrosion on the USB connector prevent the metal contacts from making solid electrical contact. This is more common than most people expect — a keyboard stored in a drawer or bag accumulates lint in the USB-A connector quickly.
To clean the USB connector:
- Use compressed air to blow out debris from the keyboard's USB-A plug and the PC's USB port
- For corrosion (green or white residue on the contacts), use a cotton swab very lightly dampened with isopropyl alcohol (90%+) and gently wipe the metal contacts
- Let dry completely (at least 2 minutes) before plugging in
- Inspect the USB port on the PC — bent pins inside the port prevent proper contact and require port replacement
Recommended: Keyboard Cleaning Kit
An electronics-safe cleaning kit with compressed air and cleaning swabs is essential for maintaining USB connectors and keyboard contacts. A dirty USB plug is a more common cause of "not recognized" errors than most people realize.
View Keyboard Cleaning Kit on Amazon →Fix 8: Test the Keyboard on Another Computer
If you've tried every fix above and the keyboard still isn't recognized on your primary machine, test it on a different computer — a friend's laptop, a work PC, anything you have access to. This test is definitive:
- Keyboard works on another computer: The problem is specific to your PC — likely a USB controller issue, corrupted driver stack, or BIOS setting. Consider reinstalling Windows if software fixes haven't worked.
- Keyboard doesn't work on any computer: The keyboard itself is faulty. Check if the USB cable is detachable — a damaged cable is far cheaper to replace than a full keyboard. If the cable is hardwired and the keyboard is out of warranty, replacement is the practical next step.
Check the USB Cable First
Many mechanical keyboards use a detachable USB-C or micro-USB cable. A broken or shorted cable causes exactly the same symptom as a broken keyboard — no recognition. Swap in a known-good cable before concluding the keyboard is dead. A $6 cable replacement is much better than a $100+ keyboard replacement.
When to Replace Your Keyboard
If the keyboard fails the cross-computer test (doesn't work anywhere) and has a hardwired USB cable, the controller board inside the keyboard has failed. This is repairable by skilled electronics technicians but rarely cost-effective for standard keyboards. Modern mechanical keyboards with detachable cables are worth keeping — only the cable needs replacing.
If your keyboard is over 5 years old and showing USB recognition issues even with a good cable, the USB controller chip on the keyboard's PCB may have degraded. At that age, replacement is typically the right call — modern keyboards have better build quality, USB-C connectors, and NKRO support that the older hardware lacks.
If It's Time to Replace: Our Top Pick
If your USB keyboard has genuinely failed and replacement makes more sense than repair, check the current top-rated mechanical keyboards on Amazon — look for models with detachable USB-C cables, which make future cable-related issues trivial to fix.
View Mechanical Keyboards on Amazon →