Fixed key handling in FireFox.