Minecraft wiki entry for Rube_Goldberg_machine, associated text: With more hackery involved, since some microcontroller boards like Arduino Leonardo or Teensy can take virtually any signal, electronic or otherwise with sensors, as an input and emulate a keyboard and a mouse using its USB connection, you can program it to spam some commands if triggered by an external source.