title: How can I make Robot type a `:`?
body: <p>I want to type <code>:</code> using Java Robot. However, I'm getting an <code>IllegalArgumentException</code>. My code is:</p>
  
  <pre><code>robot.keyPress(KeyEvent.VK_SHIFT);
  robot.keyPress(KeyEvent.VK_COLON);
  robot.keyRelease(KeyEvent.VK_COLON);
  robot.keyRelease(KeyEvent.VK_SHIFT);
  </code></pre>
  
  <p>The exception is:</p>
  
  <pre><code>java.lang.IllegalArgumentException: Invalid key code.].
  </code></pre>
  
  <p>I also tried with:</p>
  
  <pre><code>robot.keyPress(KeyEvent.VK_SHIFT);
  robot.keyPress(KeyEvent.VK_SEMICOLON);
  robot.keyRelease(KeyEvent.VK_SEMICOLON);
  robot.keyRelease(KeyEvent.VK_SHIFT);
  </code></pre>
  
  <p>How can I solve this problem?</p>