Arduino loop for motor control. Responds both to serial and on-board keys.