Hi Peter,
Thank you for posting, I am here to help you.
Possible cause of this is a simple battery issue, a poor connection, or outdated/corrupted drivers.
Try this step to fix the problem.
Look on the bottom of the wireless device for a Reset button. Resetting the device will disconnect and then reconnect the wireless connection. There might also be a Reset button on the USB receiver for your device.
For USB wireless devices, this might be as simple as unplugging the USB wireless receiver, waiting for about 10 seconds, and then plugging the USB wireless receiver back into the USB port. The wireless connection should be reestablished.
If your wireless device uses a Bluetooth connection, also see Fix Bluetooth problems in Windows for possible solutions.
For more details you can check this article:
Mouse and keyboard problems in Windows
I hope you find this information helpful. Please let us know if you have any further questions If the answer is helpful, please click "Accept Answer".
Best regards,
Jansher