private void readyForTermination() {
	addKeyListener( new KeyAdapter() {
       public void keyPressed(KeyEvent e)
       { int keyCode = e.getKeyCode();
         if ((keyCode == KeyEvent.VK_ESCAPE) || (keyCode == KeyEvent.VK_Q) ||
            (keyCode == KeyEvent.VK_END) ||
            ((keyCode == KeyEvent.VK_C) && e.isControlDown()) ) {
           running = false;
         } else if(keyCode == KeyEvent.VK_P) {
        	 if(theModel.isPaused()) {
        		 theModel.resumeGame();
        	 } else {
        		 theModel.pauseGame();
        	 }
         }
       }
     });
  }