One of my games had this feature and weirdly enough those who noticed it, didn't like it.
Either way all you need to do is take the code from the R button press in the world object of whatever engine you're using and put it in an alarm in the Game Over object set to, let's say, a second like Den suggested.