run and repeat code until button is pressed with IR remote

Please present the code correctly in code tags as has been requested multiple times, then we can talk.