I replicated the bug. When playing, press ESC, and instead of the menu, you will see your mouse, and after pressing ESC again, you will be taken to the menu, and after pressing resume, your mouse will be captured again. So I assume the problem is with capturing mouse.