title: Escape key is not working in Selenium WebDriver with Java
body: <p>I am Using Selenium WebDriver framework. I have a scenario where a button gets clicked after the textbox get populated and onblur of the textbox.</p>
  
  <p>Below is the code which I used for escape sequence which enable the button after filling in textbox.The button get enabled only when the textbox gets filled and when the focus moves out of textbox.  </p>
  
  <pre><code>WebDriver driver = new FirefoxDriver();
  driver.get("http://localhost:8081/TestAutomation/Escape.jsp");
  driver.manage().window().maximize();
  
  WebElement txtBxHandle = driver.findElement(By.name("txtName"));        
  txtBxHandle.sendKeys("Socrates");
  
  Actions action = new Actions(driver);
  action.sendKeys(Keys.ESCAPE);
  
  WebElement BnEnable = driver.findElement(By.name("btnSubmit"));
  BnEnable.click();
  </code></pre>
  
  <p>The above code is not working.I tried keyPressNative but in vain.</p>
  
  <p>Thanks for the Help.</p>