Fix Gecko (Netscape) keyboard handling