Fix #799: Press ESC to close the project directory menu