Controlling the motion of molecular machines at the nanoscale door