Keyboard keeps disconnecting

I’ve got a USB-MECH104BW plugged into a USB3-HUB7BC. The keyboard keeps disconnecting intermittently. I noticed because the backlight goes out and when it does, whatever keys I was typing don’t get recognized.