Windows disconnects idle devices if power-saving options are enabled. This could be the reason why your mouse or keyboard keeps disconnecting. Here is how you can turn off power-saving options: ...
If your mouse is not working in games on your Windows 11/10 PC, this article lists some effective fixes to help you resolve this problem.