Home > Fixes, Windows > Keyboard and mouse not working in Windows

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].


Categories: Fixes, Windows Tags:
  1. Ben Dover
    October 30th, 2012 at 11:07 | #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. October 30th, 2012 at 14:37 | #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. M Prindle
    November 1st, 2012 at 22:37 | #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. Hayley
    November 19th, 2012 at 04:43 | #4

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

  5. Dave
    December 29th, 2012 at 16:30 | #5

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

  6. Adam
    January 27th, 2013 at 18:20 | #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. Terri
    February 13th, 2013 at 22:34 | #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. Aritro
    March 4th, 2013 at 13:51 | #8

    thankyou so much for the fix it worked :D thankyouuuuuu ur the best..

  9. shelt
    March 15th, 2013 at 18:58 | #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. April 5th, 2013 at 09:57 | #10

    Thanks dude!!!

    How on earth did you figure that out?


  11. Angel
    April 6th, 2013 at 13:00 | #11

    Thank you very much. My win7 now detect keyboard again.

  12. Calvin
    June 17th, 2013 at 06:12 | #12

    I love you

  13. pokeyjo
    July 26th, 2013 at 23:15 | #13

    Wonderfully helpful! Thanks for keeping this out there.

  14. will
    October 19th, 2013 at 08:32 | #14

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

  15. Greg
    October 26th, 2013 at 20:49 | #15

    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.

  16. October 27th, 2013 at 14:52 | #16

    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.

  17. November 1st, 2013 at 09:43 | #17

    You sir, saved my bacon. You’re awesome. Keep that up!

  18. Eric
    December 16th, 2013 at 18:05 | #18

    Thank you very much, it worked !!!!

  19. December 18th, 2013 at 18:57 | #19

    @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?????

  20. Stupidfix
    May 29th, 2014 at 21:18 | #20

    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!!!

  21. Mike
    June 8th, 2014 at 10:55 | #21

    “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?

  22. kkdsugathapala
    July 5th, 2014 at 13:31 | #22

    Thank you..no words to say..

  23. Nir
    July 19th, 2014 at 03:07 | #23

    @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.

  1. October 18th, 2012 at 14:20 | #1
  2. July 20th, 2014 at 19:04 | #2