Key events are not raised when escape key is pressed on a focused element
Had the same problem, turned out to be the vimium extention. Without that, focus is not lost on pressing escape. Note that the keypress event is never fired for escape, only keydown and keyup