You can run a command in the Command Prompt window to check which devices can wake your computer from sleep. You can ...
If your keyboard or mouse starts working after connecting to another USB port, you will be able to login to your system. Now, open the Device Manager and reinstall the USB Root Hub driver.
Here's how to update or reinstall your keyboard driver using Device Manager: Alternatively, you can manually download the latest version of the driver from the manufacturer's website. Then ...
As stated above, the cause of this issue may be related to your keyboard or mouse driver. Open the Device Manager in the Safe Mode and see if your keyboard or mouse driver shows a warning sign.