If you accidentally try to start a level you already got all the keys in, I think you should warn the player or better yet have a "ghost" key to replay the level. I initially tried to go back through the pipe at the start. I was stuck until I realized I could pause and exit the level from the menu.