Having Esc to close the window conflicts with Itch's esc to close full screen and seems to be causing issues. Something to remember for next time.