After deleting the keyboard in Device Manager, have it scan for changes. It should then find the keyboard and install the driver for it. If that fails, there's always System Restore.
Good luck.
I have a Dell Inspiron 3847 desktop running Windows 8.1. It has been completely trouble-free until yesterday when I plugged in a new USB portable hard drive (Samsung M3 1TB) and tried to install the backup software that came with the drive. This requires a re-start of the computer, which didn't happen (it just froze), so I did a hard re-set by holding in the power button.
On re-starting the computer, the attached wireless keyboard and mouse would not work. I managed to get the wired mouse which came with the computer to work, but no keyboard that I own, including the Dell one, will work at all (they all work on the laptop which I am using right now).
On looking at the devices with Control Panel, all the keyboards and the wireless receiver give the same error:
"Windows cannot load the device driver for this hardware. The driver may be corrupted or missing (Code 39)". I noticed that the usbccgp.sys file was changed a couple of days ago, so I did two system restores - one to before I installed the new hard drive software and one to before the change in the usbccgp file, but neither made any difference and I note that the usbccgp file is unchanged.
I am assuming that this file has got corrupted. Do others agree with me? If so, how do I go about getting and installing a clean version of this file? Windows help is not particularly helpful on this!
Thanks to all you Windows experts

Chowhound
Comic Vine
GameFAQs
GameSpot
Giant Bomb
TechRepublic