Is it a usb keyboard . If it is delete the usb composite device in device manager and restart. It should reinstall and work fine. Else, uninstall then reinstall. If it still doesnt work, better check your Bother board/ could be a big problem