Move object continuously

I want to move an object along the x axis continuously after a button is pressed until the object reaches a point. How can I achieve this?

Thanks