mmm... check the usb port on the keyboard (not the pc), give it a light jiggle, see if there's a change in behavior during/ after jiggling..
Try a different usb cord.. don't use the cord slots for now .
if not.. just rma..
It's not worth troubleshooting , my guess is if not the port, then a few legs of the controller chip must be cold-joints