title: How to send single key (e.g. 'k') to window in Selenium WebDriver with Java?
body: <p>I'm writing some automated tests for website that mostly uses keyboard shortcuts for navigation. Some of them are with special keys (<kbd>Ctrl</kbd> + <kbd>V</kbd>, <kbd>Alt</kbd> + <kbd>C</kbd>) and with those I have no problem. </p>
  
  <p>But when I try to send single letters or num-pad symbols, it's not working. When I try to send it to non-text field or root element, it returns exception:</p>
  
  <pre><code>org.openqa.selenium.WebDriverException: unknown error: cannot focus element
  </code></pre>
  
  <p>I also tried Actions, but they are designed for special (<kbd>Ctrl</kbd>, <kbd>Alt</kbd>, <kbd>Shift</kbd>) key combination.</p>
  
  <p>I'm working with Java Selenium Web-driver for Chrome. </p>
  
  <p>Any suggestions? </p>