It's fixed for when you open the options menu by clicking the "options" button. It's not fixed for when you use the shortcut key.
It seems to visually close the menu, but the game still thinks it is there (can't control player/ship + mouse cursor still shows).
To fix this you have to press escape again and then press "resume".