Happend to me, some files are corrupted in the system.
Check out in your Device Manager and do a Property on your keyboard.
Go to Driver tab, and click on Details.
Verify if the drivers are certified by Windows, if not, you have to chance these files.