title: Why does my Timage item work within a while loop inside the onKeyPress method?
body: <p>I needed to create a application where the Timage can be hide after a certain key is pressed under a certain situation.</p>
  <p>I have set KeyPreview to true, and the image can hide within the onKeyPress method, everything worked properly. But as soon as I implemented a while loop inside the onKeyPress method, the image doesn't hide anymore after the appropraite key is being pressed.</p>
  <p>What should I do to fix that?</p>