flush stdin after moving and turning

this way commands won't queue up while the robot is moving