Fix global keyboard listener: do not send events to editor if in form input.