It really depends on wheather you want the code to run only once or forever after the button press.
If you only want it to run once then you could just look for the button press like normal. Pseudo code would be something like this, but you'd need to debounce the button.
If button equals HIGH
Then run code
If you wanted it to run forever after the button press you could create a boolean variable that is false until you press the button.
RunCode equals false
If button equals HIGH
Then RunCode equals TRUE
If RunCode equals TRUE
Then run code
There are probably more elegant ways of doing his but it should get you started.