Go to Device Manager and see if there are any disabled devices in the HID area.
If so, see if you can enable them.
If not, you should be able to remove all HID devices and reboot. Windows should rediscover them.
If that doesn't help, I would suspect a broken keyboard.