title: Selenium keys.chord does not release control keys
body: <p>This code selects two textboxes because it seems the control key is not released.</p>
  
  <pre><code>findElement('#textbox-wrapper').click();
  findElement('#textbox').sendKeys(Keys.chord(Keys.CONTROL, "A"))
  findElement('#textbox2-wrapper').click();
  </code></pre>
  
  <p>If I comment out the middle line, it selects the text boxes sequentially, leaving the second one selected at the end of the test as expected.</p>
  
  <p>If I comment out both clicks and manually press f on the browser window after the sendKeys, it performs a Ctrl+F find so it would appear the sendKeys is definately not releasing ctrl.</p>
  
  <p>Interestingly, sending another key <code>findElement('#textbox').sendKeys("A")</code> seems to fix the issue, as clicking or pressing f after that no longer acts as if ctrl is held down.</p>
  
  <p>The selenium documentation seems to suggest an existing issue</p>
  
  <p><a href="http://selenium.googlecode.com/git/docs/api/java/org/openqa/selenium/Keys.html" rel="nofollow noreferrer">Note: When the low-level webdriver key handlers see Keys.NULL, active modifier keys (CTRL/ALT/SHIFT/etc) release via a keyup event. Issue: http://code.google.com/p/webdriver/issues/detail?id=79</a></p>
  
  <p>but that link is broken...</p>
  
  <p>Selenium 2.3
  Firefox 23</p>
  
  <p>Give.</p>
  
  <p><em>Update</em></p>
  
  <p>Found these:</p>
  
  <p><a href="http://selenium.10932.n7.nabble.com/Release-ctrl-key-using-Actions-td25378.html" rel="nofollow noreferrer">http://selenium.10932.n7.nabble.com/Release-ctrl-key-using-Actions-td25378.html</a></p>
  
  <p><a href="https://stackoverflow.com/questions/13311513/webdriver-java-how-to-release-keys-after-performing-an-action">Webdriver - java - how to release keys after performing an action</a></p>