makes the debug menu cancelable with esc - like the comment says it should
Merge pull request #7222 from cSep/canceldebugmenu

Allow canceling the debug menu with Esc