Use your mousepointer to change directions. Click once on the cube to stop the movement.