title: Selenium keypress esc not work in FireFox
body: <p>I wrote this code for my unit tests in c# with selenium to test my web application. In particular I'm testing that the window for the tooltip is properly displayed and after esc key press it disappears:</p>
  
  <pre><code>private const string XPathToolTipStyle = "//form[@action='search.aspx'] //div[@id='searchToolTip']/@style";
  
  private bool IsToolTipOpen()
          {
              var tempToolTip = selenium.GetAttribute(XPathToolTipStyle);
              return !(tempToolTip).ToLower().Contains("display: none;");
          }
  
  [Test]
          public void PressEscAndCloseClosingKeys()
          {
              writeSomethingInTheInputBox();
              Assert.That(IsToolTipOpen());
              selenium.KeyPressNative("27"); //press esc
              Assert.That(!IsToolTipOpen());
          }
  </code></pre>
  
  <p>the problem is that in Internet Explorer it works correctly, but in Firefox it goes in infinite loop in IsToolTipOpen() whitout exit and return a value. I've just tried to use keyDown, KeyPress etc... but it dosen't work.
  thank you.</p>