This will detect when the flag button is pressed, and then detect when the stop button is pressed.
Click_To_Display told me how to do it, but I'm the only one to have made it.