Push Button Activated While Loop

I need the loop to run only once on the rising edge of my push button. Code?