As most of us are aware it is rather challenging to use Windows without a mouse, so here is a quick way to solve the issue.
Press the windows button on the keyboard.
Press the Tab and arrow keys to move to the control panel and press enter to open it.
Press the Tab and arrow keys to move to the device manager and press enter to open it.
Press the Tab and arrow keys to move to the USB Universal Host Controller (it should be in a warning state with a yellow icon).
Press delete key on the keyboard and follow prompts to delete the device.
Press Alt-A on the keyboard to open the Action option and select Scan for Hardware changes using the arrow keys.
The system should reinstall the USB device and the mouse should work.
Simple, but annoying.
If anyone has a script to do this automatically or a permanent fix to the problem , please leave a comment below.