How to replae delayMicroseconds in interrupt function

That line will work anywhere you put it, including within code that detects a button push and takes some action.