Enable Esc key for goMode dialog (fixes #664)

I also removed a few unnecessary `$()` wrappers.