So I have issues with pausing the game. The relevant clickcode is
Please login to see this picture.
The thing is that it looks like Upon pressing a key doesn't behave like it should and when trying to pause, it instantly unpauses. I've tried to limit condition to only one action when event loops, but that only made me unable to unpause.