Quitting the game while paused doesn't do anything until the game is unpaused
While the game is paused, you can open the menu with the escape key and use it to quit the game. It appears like the quit logic is tied to the fade out animation, which only runs when the game is unpaused. With devmode on, you need to hold down P to advance each frame of fade.
Edited by Michael Hitchens