Correctly handle Escape key in Firefox 25+
See https://bugzilla.mozilla.org/show_bug.cgi?id=501496
We need to stop "keydown" event before built-in code for menus