title: Why is type not exiting correctly?
body: <p>I am trying get Sikuli to open a chat window in a game(using t) and then close it without typing anything in (using enter).</p>
  
  <p>But when I run the script Sikulu opens the menu and then types tt, then it closes the menu.</p>
  
  <p>I put a delay of 1 second in between the type t and type enter in case it was running too fast but it did not help.</p>
  
  <pre><code>    while True:
          type("t")
          sleep (1)
          type(Key.ENTER)
  </code></pre>