@SuppressWarnings({  "deprecation" })
		public void keyPressed(KeyEvent e)
		{
			if(e.getKeyCode()==KeyEvent.VK_G){//    Gshop
				threadRobot.suspend();
				threadRepaint.suspend();
				new shop(ut).setVisible(true);
			}
			else if(e.getKeyCode()==KeyEvent.VK_ESCAPE||e.getKeyCode()==KeyEvent.VK_DELETE){
				threadRobot.suspend();
				threadRepaint.suspend();
				int result3 =JOptionPane.showConfirmDialog(null, "ȷҪ˳Ϸ𣿣", "ϷϵͳϢ", JOptionPane.YES_NO_OPTION );
				if(result3==JOptionPane.YES_OPTION){
					escape();
				}//escdelete˳Ϸ
				else if(result3==JOptionPane.NO_OPTION){
					threadRobot.resume();
					threadRepaint.resume();
				}
			}
			else if(e.getKeyCode()==KeyEvent.VK_P)//ָͣ
			{
				if(pause)
				{//threadRepaint.resume();
				threadRobot.resume();
				pause=false;}
				else {
					//threadRepaint.suspend() ;
					threadRobot.suspend();
					pause=true;
				}
			}
			
			if(ut.isLive)
			{   		
				ut.keyDispose(e.getKeyCode(),true);
			}
		}