so in my game i have a shop, which is a different layout, and you press s to enter and space to leave. however, i also have multiple levels and you can access shop in all of them. there is no option to go back to the layout you were in, the option Next/Previous Layout takes you to the layout before that one, so... like this
Level1, Level1Sheet, Level2Sheet,Level3,Level2,Shop
lets say you were in level 3 and you hit s to go shop. when you press space to leave it goes to the PREVIOUS layout, which in this case is Level2.
that is the problem i have here. any ideas on what to do?