Keyboard and mouse not working in Windows


So my keyboard and mouse suddenly stopped working, and I really didn’t know why. What followed was many frustrating hours spent to try and “safe” my machine from a new fresh Windows 7 install, because it would take just too much time to do a fresh install of everything that I currently have on the laptop.

However, the keyboard did work while I was trying to access the BIOS, but as soon as Windows started loading the keyboard and touchpad stopped working. The system booted to the Windows logon screen and I wasn’t able to do anything. Or at least, then I decided to confront the problem. 🙂

Note: First create a backup of your registry or create a System Restore point before you proceed!

The symptoms

Further symptoms manifested themselves by showing that there were some driver problems in the Device Manager. The following devices seemed to have problems:

  • HID Keyboard Device
  • Standard PS/2 Keyboard
  • PS/2 Compatible Mouse

The error codes varied and so it is really dependent of your system configuration, but is should be at least one of the following:

  • This device cannot start. (Code 10)
  • This device is not working properly because Windows cannot load the drivers required for this device. (Code 31)
  • Windows cannot load the device driver for this hardware. The driver may be corrupted or missing. (Code 39)
  • Windows cannot access this hardware because its service key information in the registry is missing or recorded incorrectly. (Code 40)

Fix it automatically in Windows Vista/7

You can fix the problem automatically by downloading and running the following registry file:


Now just restart Windows and the problem should be solved.

If the problem is still present and/or you want to fix it manually, then follow the instructions in the section Fix it manually.

Fix it manually

You should access the registry by clicking on Run and then typing


Now find the following key:


You should now see a key UpperFilters which should contain at least one entry “kbdclass”. If you have the same problem as I do, then you there are more entries there which you should delete. So now after editing, your UpperFilters key should only contain “kbdclass” (without quotes). Restart Windows, and the problem should be fixed. 🙂

If you only have the entry “kbdclass” as value and/or are still experiencing the same problem, then you should search for the word “kbdclass” (without quotes) and replace every UpperFilters key with kbdclass and other values to only kbdclass.


Below you’ll find further information and alternative scenarios on how to fix certain sub-problems.

Problems with logging into Windows

To fix the problem you should be able to access the Registry in some way and change the registry keys. I managed to get into windows by using a separate USB-mouse and accessing the On-Screen Keyboard by which I could login and do the necessary registry changes. You can do this by

  1. Clicking on the Ease of Access button at the bottom-left corner of the login screen
  2. Checking the “Type without the keyboard” and clicking OK
  3. Clicking on: Ctrl+AltGr+Del
  4. Logging in

Fixing other similar problems

The problem in my situation was that there was also a keyboard driver installed from VMware. The VMware Keyboard Driver had an additional entry “vmkbd” in the UpperFilters key, but as I discovered the driver file that was needed (C:\Windows\system32\drivers\VMkbd.sys) was missing which in effect caused all the problems.

The folder with GUID


represents the class Keyboard that is defined by the Windows operating system. It is used to install devices or other drivers. If you have another but similar problem, then you could try to analyze the filters under the GUIDs as listed below (see [3] for a complete list).

Class GUID Device Description
CDROM 4D36E965-E325-11CE-BFC1-08002BE10318 CD/DVD/Blu-ray drives
DiskDrive 4D36E967-E325-11CE-BFC1-08002BE10318 Hard drives
Display 4D36E968-E325-11CE-BFC1-08002BE10318 Video adapters
FDC 4D36E969-E325-11CE-BFC1-08002BE10318 Floppy controllers
FloppyDisk 4D36E980-E325-11CE-BFC1-08002BE10318 Floppy drives
HDC 4D36E96A-E325-11CE-BFC1-08002BE10318 Hard drive controllers
HIDClass 745A17A0-74D3-11D0-B6FE-00A0C90F57DA Some USB devices
1394 6BDD1FC1-810F-11D0-BEC7-08002BE2092F IEEE 1394 host controller
Image 6BDD1FC6-810F-11D0-BEC7-08002BE2092F Cameras and scanners
Keyboard 4D36E96B-E325-11CE-BFC1-08002BE10318 Keyboards
Modem 4D36E96D-E325-11CE-BFC1-08002BE10318 Modems
Mouse 4D36E96F-E325-11CE-BFC1-08002BE10318 Mice and pointing devices
Media 4D36E96C-E325-11CE-BFC1-08002BE10318 Audio and video devices
Net 4D36E972-E325-11CE-BFC1-08002BE10318 Network adapters
Ports 4D36E978-E325-11CE-BFC1-08002BE10318 Serial and parallel ports
SCSIAdapter 4D36E97B-E325-11CE-BFC1-08002BE10318 SCSI and RAID controllers
System 4D36E97D-E325-11CE-BFC1-08002BE10318 System buses, bridges, etc.
USB 36FC9E60-C465-11CF-8056-444553540000 USB host controllers and hubs

The next step is to adjust the UpperFilters like the problem where the CD or DVD drive is missing or not recognized by other programs [1][2].


36 thoughts on “Keyboard and mouse not working in Windows”

  1. So, to fix the keyboard and mouse issue we have to login and then go into the registry. Great fix, how are we suppose to do that if THE MOUSE AND KEYBOARD DONT WORK!!

  2. @Ben Dover
    In my case it was my laptop keyboard and touchpad that didn’t work. However, I did had an external usb-mouse that actually did work, so I was still able to do the fix by clicking on the virtual keyboard in windows. You could try to attack an other usb mouse and try if that works. If that still doesn’t work, then you could try and fix it by accessing the repair windows option and manually edit the registry in Windows Command Prompt. I will probably also add an explanation of this alternative to the article (when I get the time ofcourse :)).

  3. Thank you for this post! I’ve been jacking with a VM for hours trying to get into the system, but the keyboard would not work. I edited the registry offline and sure enough it had an extra entry in the UpperFilters. I removed it and the keyboard is now working.

  4. Just have to say this worked PERFECTLY after hours of trying multiple fixes. Thank you so much 🙂

  5. The manual fix totally worked for me. My keyboard and touch-pad are working great. Thanks 🙂

  6. Thank you so much, can you believe that this happened to a brand new Veio with win8 we just purchased a week ago from tigerdirect altamonte Spring store. I called their support and they said that there was no way to fix it – even after describing the exact issue with the problematic registry value… they said for me to return the computer, which was not possible because it was purchased on holiday… so after 15 minutes I find a solution here and fix it – no thanks to Tigerdirect, their service sux. You know they also sold my wife an antivirus software as well even though the computer come with one already installed? Terrible sneaky service…

  7. Awesome fix for a very hair-pulling problem! I was hesitant to try the automatic fix since it only referenced Vista and Windows 7, so tried the manual fix a few times, but I must have been missing some entries to delete.
    So, I finally got brave and ran the auto fix–worked like a charm, even on XP! Thanks!

  8. thankyou so much for the fix it worked 😀 thankyouuuuuu ur the best..

  9. Great fix. Had this issue after running the Kaspersky remover and now the keyboard works fine after running the auto fix. Good tip on the virtual keyboard, having never used it myself

  10. you are the man been googling for 5 hours using onscreen keyboard and usb mouse

  11. So it goes to the point of the thread that if your PS2 keyboard and mouse don’t work and you can’t get any USB keyboard and mouse to work then how do you complete any steps that require one or the other? Even in safe mode they don’t work. Now with that in mind the keyboard will work during the BOIS boot and when I loaded Win 7 on a spare HD I have no problems, everything works fine. I know its a software issue but I want to figure this out without an OS reload. ASUS CM6730. I’m most likely won’t be back here to see any replys, I just want to point out how all your steps require a keyboard or mouse working but the main issue was keyboard and mouse not working so next time suggest solutions that make sense.

  12. @Greg
    There are some other possibilities when if your keyboard works in safe-boot or the repair menu (after pressing F8), but I haven’t discussed them here. In short: in theory could edit the relevant registry key from the command prompt from the repair-boot. I haven’t tried this myself because I solved it with a usb mouse, but I see no reason why it couldn’t work.

  13. @Ben Dover
    I have a very same problem with my mouse and keyboard, Ben Dover is right, how can you you navigate your system if you cant use either your mouse or your keyboard?????

  14. Again, like others, can’t use keyboard OR mouse at windows Login screen. Mouse and Keyboard both work at POST/BIOS. This doesn’t help me what so ever if I have no mouse/keyboard period!!!

  15. “You should now see a key UpperFilters which should contain at least one entry “kbdclass”. If you have the same problem as I do, then you there are more entries there which you should delete. So now after editing, your UpperFilters key should only contain “kbdclass” (without quotes). Restart Windows, and the problem should be fixed. 🙂

    If you only have the entry “kbdclass” as value and/or are still experiencing the same problem, then you should search for the word “kbdclass” (without quotes) and replace every UpperFilters key with kbdclass and other values to only kbdclass.”
    I don’t get this part. Yes I see the same reg entries like at the screenshot but what should I do now?

  16. @Mike , just edit that key, and delete the vmkbd line. Leave only the kbdclass line.
    You basically have two drivers for the keyboard. But you want to remove the VMWare one – vmkbd. So just remove that line, and then you’ll be left with just the regular keyboard driver, which is all you need.

  17. Wew, very very much thanks to you eddsn for the article and the auto fix 😀

    to think the problem is the registry XD, i wonder what program change that registry? i am sure i didn’t install anything or change anything in the registry in the past 2 week. suddenly the keyboard and touchpad stop working.. how did you figure it out? i am sure it’s not virus (because i check with antivirus and found nothing, and this problem didn’t bite me again..)

    for you who whining about how can i do this when the keboard and touchpad error? use external keyboard and mouse. well for me i just use my pc mouse and double click the auto fix, then restart, then the keyboard and mouse is working again..

  18. all i can say to u whoever provided this blog is thank u thank u thank u…editing the registory keys helped me and my keyboard and mouse is now working as before..

  19. My HPZ400 is suffering from an identical problem. When reinstalling a clean version of Windows 7 Pro 64 bit the mouse functioned intermittently and eventually the mouse and keyboard stopped working. A PS2 keyboard allowed me to finish installing and activating Windows 7 but the USB ports on the front and rear of the machine wouldn’t allow a keyboard or mouse to function. I’m seeing the identical driver errors as shown above except my HID compliant mouse shows no error.

    The situation confuses me so I’ll list what’s happening.

    USB ports front
    2 USB
    1 Firewire

    USB ports rear
    2 USB and 1 RJ45 Ethernet port (single component mounted to mother board)
    4 USB ports (single component mounted to mother board)

    1. When inserting a flash drive or mouse with an LED the LEDs glow when the devices are inserted into the two USBs on front or four USBs in rear. I thought this was important to know because it means six of the eight USB ports receive power. The strange thing is the flash drive is recognized by the OS when inserted into one of the four USB ports in rear. I think it’s strange for the flash drive to function which makes me think this is a driver or registry error.

    2. Currently I have a display equipped with two USB ports and am able to use a USB mouse and keyboard when the mouse and keyboard are plugged directly into the display, and the display connected to one of the four USB ports in rear. The problem

    3. The BIOS was updated to the most recent version but this did not fix the problem.

    4. BIOS settings are identical to my other HPZ400

    5. I tried both registry adjustments listed above but the the problem still exists.

    Here’s a link to a screen capture of device manager. Can someone recommend what I should try next?

  20. Here’s some additional info.

    6. When first trying to install Windows I received the BIOS alert after removing the on board battery.

    162-System Options Not Set
    Your system configuration has changed since your last boot. Addition of a hard drive, etc., or loss of power to the Real Time Clock has occurred. Pressing F1 will record the new configuration. If this message persists, you may need to replace the onboard battery.

    The following configuration options were automatically updated:
    Memory: 12228 MB
    CMOS checksum invalid, default values not loaded

    F1: Save Changes |

    7. What I find strange is that one week later, while the machine was in sleep mode, the machine shut down and rebooted with the same alert.

    8. After waiting a day, and plugging the mouse into the machine, the mouse will sometimes work, but when plugging in the keyboard the mouse and keyboard will both stop working.

  21. 7. (continued) After the unexpected shutdown the on board battery was replaced with another but the mouse and keyboard still have intermittent problems.

  22. Had 2 computer pros look at my comp they both said restore but i have a bad copy of window so cant do that lol. this was a savior man a freakin savior ty

  23. My Dell Precision Notebook froze while installing VMWARE Workstattion 10.0.4. After restart no mouse, touchpad, keyboard or external USB keyboard. But i could connect via remote desktop. Edited the registry as you instructed and voila – everything is working again.
    Thanks a bunch!

  24. That is very fascinating, You’re an excessively skilled blogger.
    I have joined your rss feed and look ahead to in the hunt for extra of your excellent post.
    Additionally, I’ve shared your website in my social networks

  25. Merci, merci, merci from Switzerland !!! I’ve been all over the web, and your solution is the only one that worked !

Leave a Reply

Your email address will not be published. Required fields are marked *