What is the issue - creating the two pulses or detecting the switch has been pressed? Not sure what your real issue is from the description.
What is the issue - creating the two pulses or detecting the switch has been pressed? Not sure what your real issue is from the description.