I have a MacBook Pro 14" M2 Pro Chip and using a USB-C to USB adapter, I have connected my USB Wired Keyboard to it. But, the keyboard stops working sometimes. It does not randomly stop working - it disconnects when I have stopped working on the keyboard for some time.
I just plug the adapter out and back into the MacBook and the keyboard then works normally (for a while before this happens again). It is not a big issue but it is inconvenient.
How can I fix this? If it matters, I have a wireless Bluetooth mouse, but it does not disconnect (even after inactivity).