No worries, I fixed the issue now by rewriting the entire inventory system. Closing the game with esc is intended, because the game runs in fullscreen, so players dont need to bother with closing the game by hand. In case you wanna close the crafting menu, just press the I key again.