prevent key events from browser