When your keyboard suddenly stops responding at the login screen, you can still get back into Windows using the on-screen keyboard, a mouse, or a few built-in shortcuts. This guide walks you through every reliable method, from clicking your way in to using the physical power button as a last resort.
What You’ll Need
- A working mouse or touchscreen (for most methods)
- Access to the physical power button on your PC or laptop
- Another keyboard (optional, but helpful for testing)
- A second device (phone or tablet) to look up steps if needed
Step-by-Step
- Try the on-screen keyboard at the login screen. If you see the password box, look for the accessibility icon (usually a clock or a person icon) in the bottom-right corner. Click it and select On-Screen Keyboard. A virtual keyboard appears; use your mouse to click each key and type your password.
- Use the mouse to click the password field. Sometimes the keyboard stops because the field isn’t focused. Click directly in the password box, then try typing again. If the physical keyboard still doesn’t work, continue with the on-screen keyboard.
- Restart the PC using the mouse. Click the power icon in the bottom-right corner of the login screen and select Restart. A fresh start often clears temporary driver glitches that freeze the keyboard.
- Force a restart with the power button (if the mouse also fails). Press and hold the physical power button for 5–10 seconds until the PC shuts down. Wait a few seconds, then power it back on. This is safe for the hardware, though any unsaved work will be lost.
- Boot into Safe Mode (if you can get to the sign-in screen). After a forced restart, Windows may show a blue recovery screen. Click Advanced options → Startup Settings → Restart, then press 4 or F4 on the keyboard (if it works now) to enter Safe Mode. In Safe Mode, Windows loads basic drivers, which may let the keyboard function so you can sign in and fix the issue.
- Plug in a different keyboard. If you have a spare USB keyboard, plug it in. Windows should detect it automatically. If it’s a laptop, try an external keyboard to see if the built-in one is the problem.
- Check the USB port or wireless receiver. If your keyboard is wireless, remove and reinsert the USB receiver, or try a different port. For Bluetooth keyboards, the on-screen keyboard (step 1) can help you navigate to Settings to reconnect, but you’ll need to get signed in first.
- Use the Windows key + L shortcut (if you’re already logged in). If the keyboard dies while you’re at the desktop, press Windows key + L to lock the screen, then use the on-screen keyboard to log back in.
Common Mistakes
- Not clicking the password field first. The keyboard may be fine, but the cursor isn’t in the right place. Always click the field before typing.
- Assuming the keyboard is dead when it’s just the battery. If it’s wireless, check the battery or charge level. A low battery can cause intermittent failures.
- Forgetting to try a different USB port. A faulty port can stop power delivery to the keyboard. Swap ports before assuming the keyboard is broken.
- Holding the power button too long during a normal restart. A quick press is enough to bring up the power menu; holding it forces a hard shutdown, which should be a last resort.
- Overlooking the on-screen keyboard because it’s hidden. The accessibility icon is small and easy to miss. Look for a circle with a clock or a person icon near the bottom-right corner.
Tips
- Enable the on-screen keyboard to start automatically. Once you’re back in Windows, go to Settings → Accessibility → Keyboard and turn on On-Screen Keyboard. This way it’s available at the login screen next time.
- Keep a spare keyboard handy. A cheap USB keyboard is a lifesaver for emergencies. It doesn’t need to be fancy—just functional.
- Update or reinstall keyboard drivers. After you’re in, open Device Manager (right-click Start → Device Manager), expand Keyboards, right-click your keyboard, and select Update driver or Uninstall device (then restart). This often fixes recurring issues.
- Check for physical damage. If the keyboard is built into a laptop, a spilled drink or debris can cause keys to stick. Try gently cleaning with compressed air.
Troubleshooting
If none of the above works, here’s what to try next:
- If the on-screen keyboard doesn’t appear: Click the accessibility icon and make sure On-Screen Keyboard is toggled on. If it still doesn’t show, try clicking the icon again or restarting the PC.
- If the mouse also stops working: You’re likely facing a system hang. Force a restart with the power button. If the problem persists after reboot, it may be a hardware failure.
- If you can’t get past the login screen at all: Use Windows Recovery Environment (WinRE). Force restart twice—on the third boot, Windows should show a recovery menu. From there, choose Advanced options → Troubleshoot → Reset this PC (keep files) or Startup Repair.
- If the keyboard works in Safe Mode but not normally: A third-party driver or startup program is likely interfering. In Safe Mode, run msconfig (press Win+R, type
msconfig) and disable non-Microsoft services, then restart normally. - If the keyboard is completely unresponsive even in BIOS: The issue is hardware-level. Try a different keyboard, check the port, or test on another PC. If it’s a laptop, you may need professional repair.
Frequently Asked Questions
Can I unlock my PC without a keyboard?
Yes. Use the on-screen keyboard with your mouse, or if you have a touchscreen, tap the keys directly. You can also use Windows Hello (face or fingerprint) if set up.
What if my keyboard is wireless and the receiver is lost?
You can still use the on-screen keyboard to sign in. After that, go to Settings → Bluetooth & devices to pair a new keyboard, or use a USB cable if your wireless keyboard supports it.
Why did my keyboard stop working all of a sudden?
Common causes include driver corruption, a low battery (wireless), a loose connection, or a Windows update that changed settings. Restarting often fixes it.
Will I lose my files if I force restart?
No, a forced restart doesn’t delete files. However, any unsaved work in open programs will be lost. It’s safe to do when the system is unresponsive.
How do I enable the on-screen keyboard for future use?
Go to Settings → Accessibility → Keyboard and toggle on On-Screen Keyboard. You can also set it to start automatically at sign-in by checking the box that says Use this device without a physical keyboard.
Is there a way to unlock using only the power button?
Not directly. The power button can restart the PC, but you still need a keyboard or mouse to enter your password. The on-screen keyboard is your best bet if the physical one is dead.
Related
General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.
More in this bed
- How to Disable Chkdsk at Windows Startup
- Restore WiFi and Secure Your Netgear Router After Reset
- Fix Error 0x80004005: Top Easy Ways That Work
- How to Cool Down an Overheating Laptop
- Good Password: How to Create One
- Remove Write Protection on External Hard Drive