I have a MacBook Pro with an external generic USB keyboard / hub. The keyboard stopped working - usually. If I unplug it and plug it back in a few dozen times, the keyboard usually starts working again. It then continues working with no problems until I unplug it again. I have a USB mouse plugged into the keyboard's USB hub - this always works fine.
Any ideas? Is there a way I can force MacOS to re-initialize the USB device via software, without physically unplugging the keyboard and plugging it back in?