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.
If you want to enable the keyboard again, you will need to go to Device Manager, navigate to Keyboards, find your in-built keyboard, and enable it once more. Alternatively, you can simply try ...