Fixed key handling on IE