GMS 2.3+ Space Rocks - Restarting problem


I did exactly what is shown in the tutorial. But while the enter key sometimes works in the win or lose screen to go main menu, sometimes it doesn't work at all. Even though there were problems when I decreased the number of asteroids but it was working more stable. I listen if anyone has any advice.