fix enter/esc key listening bug in Opera