Make key event handling work exactly like in desktop Firefox