The USB Rubber Ducky is getting better and better.
For example, the new Ducky can run a test to see if it’s plugged into a Windows or Mac machine and conditionally execute code appropriate to each one or disable itself if it has been connected to the wrong target. It also can generate pseudorandom numbers and use them to add variable delay between keystrokes for a more human effect.
https://www.theverge.com/23308394/usb-rubber-ducky-review-hack5-defcon-duckyscript
https://thestack.technology/keystroke-reflection-air-gap-exfiltration/