title: Robot and keyPress
body: <p>What sort of code need to be passed to the JavaFX Robot when using the <code>keyPress</code> method?</p>
  
  <p>For example, the example below enters a <code>1</code>, not an <code>a</code>, so I suppose there is a mapping somewhere.</p>
  
  <pre><code>Robot robot = com.sun.glass.ui.Application.GetApplication().createRobot();
  robot.keyPress(((int) 'a');
  </code></pre>
  
  <p>Note: this is the JavaFX robot, not the AWT one.</p>