Not really, if i understand what you’re doing properly. Holding keyboard buttons will also trigger the bug. Since you have complete control over the commands sent by your hardware, you can simply send pulses rather than always on signals. That should keep the bug from showing up, at least with your rotary encoders.