When your keyboard is not detected on startup, the symptom is unmistakable: you press the power button, the system posts and reaches the lock screen or BIOS splash, but no key presses register. The caps lock and num lock lights do not toggle, you cannot enter your password or access the BIOS with Del or F2, and the system may show an error like “No keyboard detected” or “Keyboard error or no keyboard present” before booting. On some desktops, Windows will load with the on-screen keyboard as the only input option.
How urgent this is depends on where the failure occurs. If the keyboard works after Windows loads but not during POST, you can still use the PC but you are locked out of BIOS, Safe Mode, and BitLocker recovery. If it never works at all, the PC is effectively unusable until input is restored. Most startup detection failures are caused by power, port, or BIOS settings and can be resolved in under ten minutes without replacing hardware.
Likely Causes
| Cause | How to confirm | Fix difficulty |
|---|---|---|
| Loose connection or faulty USB port | Keyboard lights are off at boot; works instantly in a different USB port or on another PC | Easy |
| Fast Startup skipping USB initialization | Keyboard fails on cold boot but works after Restart; Windows Power Options shows Fast Startup enabled | Easy |
| Legacy USB Support disabled in BIOS/UEFI | Keyboard works in Windows but not in BIOS setup or boot menu; BIOS shows Legacy USB = Disabled | Easy |
| Corrupted or missing HID/keyboard driver | Device Manager shows yellow exclamation on Standard PS/2 Keyboard or HID Keyboard Device, or driver date is blank | Moderate |
| USB power management suspending ports | Keyboard disconnects intermittently and fails after sleep or startup; Device Manager power management box is checked | Moderate |
| BIOS bug or depleted CMOS battery | BIOS clock resets on every boot, settings do not save, keyboard detection is random across reboots | Advanced |
Fix 1: Reseat the Keyboard and Test Ports
What causes it
A keyboard that is not fully seated, connected through an unpowered USB hub, or plugged into a case front-panel port with a weak connection will not receive enough power during POST to be enumerated. USB 3.0 ports (blue insert) can also be slower to initialize than USB 2.0 ports on some motherboards.
How to check
Power off the PC completely. Look at the keyboard’s indicator lights within the first 5 seconds after pressing power. If they never flash, the port is not delivering power. Try the rear I/O panel USB ports directly on the motherboard, preferably a black USB 2.0 port. If you are using a hub, dock, or KVM switch, bypass it. Test the same keyboard on a laptop or second PC to rule out a dead cable.
What to do
Shut down via Start > Power > Shut down. Unplug the keyboard, wait 10 seconds, then plug it firmly into a rear USB 2.0 port. If you have a wired keyboard with a detachable cable, reseat both ends. For wireless keyboards, remove the USB dongle, reinsert it in a rear port, and ensure the keyboard power switch is On with fresh batteries. Power the PC on and immediately tap Caps Lock to see if the light toggles. As of early 2026, many budget mechanical keyboards also have a physical switch for polling rate or connection mode on the back; set it to wired and 1000Hz if applicable.
How to undo it
Simply move the keyboard back to the original port or hub if this did not help. No settings are changed by reseating.
Fix 2: Disable Fast Startup in Windows
What causes it
Windows Fast Startup saves the kernel session to the hibernation file at C:\hiberfil.sys to speed up boot. On some systems this prevents USB controllers from fully resetting, so the keyboard is not re-enumerated on a cold boot. A Restart forces a full initialization, which is why the keyboard may work after Restart but not after Shut down.
How to check
Boot with a temporary method to get into Windows, such as using an on-screen keyboard at the lock screen (click the Accessibility icon > On-Screen Keyboard) or a different keyboard. Press Win + R, type powercfg.cpl and press Enter. Click Choose what the power buttons do on the left. If Turn on fast startup (recommended) is checked under Shutdown settings, it is active.
What to do
In that same window, click Change settings that are currently unavailable at the top and enter your administrator password if prompted. Uncheck Turn on fast startup (recommended). Click Save changes. Then go to Start > Power > Shut down, not Restart, to perform a full cold boot test. To disable the hibernation file entirely, open Command Prompt as Administrator and run powercfg /h off which also disables Fast Startup.
How to undo it
Return to Control Panel > Hardware and Sound > Power Options > Choose what the power buttons do, click Change settings that are currently unavailable, re-check Turn on fast startup, and click Save changes. Or run powercfg /h on in an elevated Command Prompt to restore hibernation.
Fix 3: Enable USB Legacy Support in BIOS/UEFI
What causes it
When Legacy USB Support or USB Keyboard Support is Disabled in BIOS, the firmware does not enable USB keyboards until the operating system loads its own driver. You will be unable to press Del, F2, F12, or Esc to enter setup or select a boot device.
How to check
You need a keyboard that works in BIOS to verify. Borrow a basic wired USB keyboard or a PS/2 keyboard if your board has a round purple PS/2 port. Enter BIOS by spamming Del or F2 during the manufacturer splash screen immediately after power on. Navigate to Advanced > USB Configuration or Settings > Advanced > Integrated Peripherals depending on vendor. Look for entries named Legacy USB Support, USB Keyboard Support, or USB Legacy. If set to Disabled, that is the cause.
What to do
In BIOS, set Legacy USB Support to Enabled and XHCI Hand-off to Enabled. For ASUS boards this is under Advanced > USB Configuration. For MSI, Settings > Advanced > USB Configuration. For Gigabyte, Settings > IO Ports > USB Configuration. Set USB Support to Full Initial if you see that option. Press F10 > Yes to Save and Exit. If you cannot enter BIOS at all, connect the keyboard to a USB 2.0 port as noted in Fix 1, because some boards only initialize USB 2.0 ports before boot.
How to undo it
Re-enter BIOS and set Legacy USB Support back to Disabled or Auto, then press F10 to save. Auto is safe for most modern systems if you prefer the default.
Fix 4: Reinstall the Keyboard Driver
What causes it
A corrupted HID driver, an interrupted Windows Update, or a filter driver from keyboard software can cause Code 19, Code 24, or Code 39 errors where Windows reports the device is not present at startup even though it has power.
How to check
Press Win + X > Device Manager. Expand Keyboards and Human Interface Devices. Right-click HID Keyboard Device or Standard PS/2 Keyboard > Properties > General tab. Check Device status. If it says Windows cannot start this hardware device or the driver is not installed, or if there is a yellow exclamation mark, the driver is at fault. Also check the Driver tab for Driver Provider, Date, and Version; a blank or Microsoft driver from 2006 that will not update can indicate a problem.
What to do
In Device Manager, right-click the affected keyboard under Keyboards > Uninstall device > check Attempt to remove the driver for this device if shown > Uninstall. Then right-click Human Interface Devices > HID Keyboard Device and uninstall there as well if present. Do not uninstall all USB Input Devices at once if you only have one mouse. After uninstalling, click Action > Scan for hardware changes at the top of Device Manager. Windows will reinstall the driver from C:\Windows\System32\DriverStore\FileRepository. Restart the PC. If the issue persists, go to Settings > Windows Update > Advanced options > Optional updates > Driver updates and install any available keyboard or chipset driver.
How to undo it
In Device Manager, right-click the keyboard > Properties > Driver tab > Roll Back Driver if enabled. Alternatively, open System Restore by pressing Win + R > rstrui.exe and restore to a point before the driver was removed. You can also re-install the manufacturer’s software from its default location, typically C:\Program Files (x86)\[Manufacturer]\.
Fix 5: Turn Off USB Power Saving
What causes it
Windows can power down USB Root Hubs to save energy via USB selective suspend and the Allow the computer to turn off this device to save power option. On startup, the hub may not wake fast enough to detect the keyboard.
How to check
Press Win + X > Device Manager > expand Universal Serial Bus controllers. Right-click each USB Root Hub (USB 3.0) and Generic USB Hub > Properties > Power Management tab. If Allow the computer to turn off this device to save power is checked, power saving is active. Also check Control Panel > Hardware and Sound > Power Options > Change plan settings on your active plan > Change advanced power settings > USB settings > USB selective suspend setting. If it is set to Enabled, it can cause the symptom.
What to do
In Device Manager, uncheck Allow the computer to turn off this device to save power on every USB Root Hub, USB Hub, and Generic USB Hub. Click OK. Then open 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 Apply and OK. For desktops, also verify in Settings > System > Power > Screen and sleep that no aggressive USB power policy is applied. Cold boot after saving.
How to undo it
Recheck the box for Allow the computer to turn off this device to save power on each hub, and return USB selective suspend setting to Enabled in the advanced power settings.
Fix 6: Reset BIOS Settings and Check the CMOS Battery
What causes it
An unstable BIOS configuration, failed overclock, or weak CR2032 CMOS battery can cause the BIOS to lose USB initialization settings between shutdowns. Signs include the system clock showing the wrong time after a full shutdown and BIOS settings reverting to defaults.
How to check
Enter BIOS and check the main screen for System Time and Date. Shut down, switch off the power supply switch on the back, wait 30 seconds, power on, and re-enter BIOS. If the time has reset to 00:00 or a date years in the past, the battery is likely depleted. In Windows, press Win + R > msinfo32 > check BIOS Version/Date and BIOS Mode to note if the BIOS is very old.
What to do
First reset settings without opening the case: in BIOS, press F5 or F6 to Load Optimized Defaults, or find Exit > Load Optimized Defaults > Yes, then F10 to save. If the problem returns after a full power loss, replace the battery. Power off, unplug the power cable, hold the front power button for 5 seconds to discharge. On the motherboard, locate the silver CR2032 coin cell near the center, push the metal tab to release it, insert a new CR2032 with the + side up, and press until it clicks. Power on, enter BIOS, set date and time, and re-enable Legacy USB Support as in Fix 3. Battery voltage should be 3.0 to 3.3 volts when measured.
How to undo it
You cannot undo a battery replacement except to reinstall the old battery, which is not recommended if it was dead. For a BIOS reset, you can restore your previous settings manually, such as XMP Profile 1 for RAM under OC > DRAM Settings, and Boot order under Boot > Boot Priority, then save with F10.
Fix 7: Update Chipset Drivers and BIOS Firmware
What causes it
Outdated chipset drivers or a BIOS firmware bug can cause USB enumeration failures at POST, especially on newer platforms. The USB controller may not be initialized in the correct order until a firmware update corrects timing.
How to check
Press Win + X > Device Manager > System devices. Look for entries like Intel USB 3.0 eXtensible Host Controller or AMD USB 3.10 eXtensible Host Controller. Right-click > Properties > Driver tab to see the driver version and date. Compare it to the current version on your motherboard support page. Also note the exact motherboard model via Win + R > msinfo32 > BaseBoard Product. If the BIOS version is more than two revisions behind the latest stable listed, an update may contain a USB compatibility fix.
What to do
Create a restore point: press Win + S > Create a restore point > Create. Install the latest chipset driver package from your motherboard vendor’s support site, choosing the correct revision for your Windows build, typically located under Drivers > Chipset. Run the installer as Administrator and restart when prompted. Only update BIOS if the startup issue persists after all other fixes: download the stable BIOS file, place it on a FAT32 USB stick, enter BIOS > M-Flash / EZ Flash / Q-Flash tool, select the file, and do not power off during the 2 to 5 minute flash process. Load Optimized Defaults after flashing.
How to undo it
Uninstall the chipset driver via Settings > Apps > Installed apps > select the chipset package > Uninstall, then reinstall the previous version you had. BIOS downgrades are not always supported; check your manufacturer’s documentation. If downgrade is allowed, use the same flash tool and select the older BIOS file, otherwise use Load Optimized Defaults to revert settings.
If Nothing Works
If the keyboard still is not detected on startup, isolate hardware failure. Test with at least two different wired keyboards, one in a rear USB 2.0 port and one via PS/2 if your board has the port, and test your keyboard on another PC. If no keyboard is ever detected before Windows loads but works after, and you have tried Fix 3 and Fix 6, the motherboard’s USB controller or the port itself may be damaged. Try a PCIe USB expansion card, which initializes as a separate controller, or enable Bluetooth keyboard support in BIOS if your board supports it under Advanced > Bluetooth Devices.
For systems that boot but cannot accept a password, use the Accessibility on-screen keyboard to log in, then open Settings > Accessibility > Keyboard and enable On-Screen Keyboard and Sticky Keys temporarily to troubleshoot. Running the hardware troubleshooter can help: press Win + R > msdt.exe -id DeviceDiagnostic > Next. As a last resort, boot into Windows Recovery by holding Shift while clicking Restart, then go to Troubleshoot > Advanced options > UEFI Firmware Settings > Restart to access BIOS without needing a working key during POST, and consider a clean Windows install only after confirming the keyboard works reliably in BIOS.
FAQ
Why does my keyboard only work after unplugging and replugging it?
This usually indicates USB selective suspend or Fast Startup prevented proper enumeration on the initial boot. When you replug, Windows forces a re-enumeration and loads the HID driver. Apply Fix 2 and Fix 5 to prevent the hub from staying in a suspended state after startup.
Can a wireless keyboard cause not detected on startup errors?
Yes. Wireless dongles require additional initialization time and can be affected by low batteries or interference. Replace batteries and ensure the dongle is in a rear USB 2.0 port, not a hub or front panel. Some BIOS menus have a specific setting for Wireless Keyboard Support that must be Enabled to allow the dongle to work before Windows loads.
Should I use USB 2.0 or USB 3.0 ports for my keyboard?
Use USB 2.0 for maximum compatibility at startup. XHCI pre-boot drivers sometimes delay USB 3.0 port activation, while USB 2.0 ports are enabled earlier by Legacy USB Support. Once in Windows, either port will perform the same for a keyboard, with a polling rate of 125Hz to 1000Hz depending on the model.
Will resetting BIOS erase my files?
No. Loading Optimized Defaults or replacing the CR2032 battery only resets firmware settings such as boot order, XMP, and fan curves. Files on your drives at C:\Users\YourName\Documents remain untouched. You will need to re-apply any custom settings like enabling XMP or resizing BAR after a reset, but Windows and your data are not deleted.