The setting exists in the main menu and in the in-game pause screen. It's a little awkward to access in-game since it uses the escape key and due to how webgl handles the escape button, it escapes the mouse capture first before sending the escape key to the game, meaning you have to press escape twice.