Movement started with key press and not stopped until collision detected

I want to create movement in a movieclip when an arrow key is pressed. I want the movieclip to start moving and not stop until a hitTest recognizes a collision with another object and then tells it to stop. I want the key to only have to be pressed once to start movement and not have to stayed pressed down. How would I do this?