title: how to close a popup screen in blackberry bold
body: <p>hey i have displayed a pop-up screen when i click on a menu item</p>
  
  <p>now i want to close that pop-up screen when user presses escape key.but it does not work and remain stuck,till i click on a button on the pop=up screen.</p>
  
  <p>how can i achieve that????
  filter is my pop-up screen
  my code is :::</p>
  
  <pre><code>     protected boolean keyChar(char c, int status, int time)
           {
             boolean retVal = false;
  
            if (c == Characters.ESCAPE)   
            {       
                close();
             UiApplication.getUiApplication().invokeLater(new Runnable()
             {
           public void run()
           {
            //UiApplication.getUiApplication().popScreen(filter);
            UiApplication.getUiApplication().
  popScreen(UiApplication.getUiApplication().getActiveScreen());//(filter);
           } 
          });
             retVal = super.keyChar(c,status,time);
  
            } 
         return retVal;     
           }
  </code></pre>