I am using a Mac Mini M1 (2020) and I have a Ducky 2087 keyboard connected via USB.
The keyboard works fine while active, but when I leave the Mini alone for some time, around 10-15 minutes or more, when I try logging back in, there's no keyboard input received. They keyboard's LEDs are lit, but it's like it's not connected.
My only solution has been to disconnect/reconnect the keyboard and it works.
If I don't leave the Mac idle the keyboard works without any issues.
What could be the problem?
UPDATE
The OS is Ventura 13.1 (22C65), Mac Mini M1 16 GB RAM 256 SSD.