USB mouse or keyboard not working in Windows 11: test the hardware path first
Reconnect, change ports and bypass hubs before changing Windows drivers.
- Unplug the USB device and reconnect it after a short pause.
- Try another USB port.
- Bypass the USB hub and connect directly to the PC.
- Check batteries, cables and visible connector damage where relevant.
What this problem usually means
For USB input devices, Microsoft starts with physical connection and power checks because a bad port, cable, hub or battery can mimic a driver failure. Those checks are faster and safer than driver removal.
Work from the narrowest fix to the broader one.
Isolate the port, hub and device
Low riskWhy this belongs here: A different port/direct connection shows whether the failure follows the accessory or a particular USB path.
- Test at least one different physical port.
- Remove the hub/dock temporarily.
- If possible, test the keyboard or mouse on another computer.
Check Device Manager only after the hardware path
Low riskWhy this belongs here: Device Manager is useful when the accessory works elsewhere but Windows does not enumerate it correctly.
- Open Device Manager.
- Check the relevant input/HID and USB categories.
- Note warning icons or Device Manager error codes.
- Scan for hardware changes after reconnecting the device.
When this guide stops being the right path
If the keyboard or mouse fails on another computer too, Windows is not the primary cause.
If the problem is still not fixed
If Device Manager reports Code 10, 28, 31, 43 or another code, continue with that scoped error record.
Sources reviewed for this page
Primary technical guidance is preferred. A source supports the scope stated here; it does not imply that every possible cause is covered.