I think the problem is that when you press the escape key in the itch.io page, it just exits from the game. My game was made in Godot instead of Unity but I think the mouse locking works the same way, I'm so sorry that I didn't reply sooner because now it's probably too late to recommend adding a Windows or Linux version too.