@Override
public void keyPressed(KeyEvent e) {
	// TODO Auto-generated method stub
	int key = e.getKeyCode();
        if(key==KeyEvent.VK_W){
            up=true;
            left=true;
            right=false;
            down=false;
            enterStairs=false;
            showScore=false;
        }
        if(key==KeyEvent.VK_E){
            up=true;
            right=true;
            left=false;
            down=false;
            enterStairs=false;
            showScore=false;
        }
         if(key==KeyEvent.VK_S){
            up=false;
            right=false;
            left=true;
            down=true;
            enterStairs=false;
            showScore=false;
        }
          if(key==KeyEvent.VK_D){
            up=false;
            right=true;
            left=false;
            down=true;
            enterStairs=false;
            showScore=false;
        }


	if(key== KeyEvent.VK_LEFT){

		left=true;
		right=false;
		up=false;
		down=false;
		enterStairs=false;
showScore=false;
	}
	if(key==KeyEvent.VK_SPACE){
		enterStairs=true;
		left=false;
		right=false;
		up=false;
		down=false;
                showScore=false;

	}
	if(key== KeyEvent.VK_RIGHT){
		left=false;
		right=true;
		up=false;
		down=false;
	showScore=false;
                enterStairs=false;
	}
	if(key== KeyEvent.VK_UP){
		left=false;
		right=false;
		up=true;
		down=false;
		enterStairs=false;
                showScore=false;
	}
        if(key== KeyEvent.VK_ALT){
		left=false;
		right=false;
		up=false;
		down=false;
		enterStairs=false;
                showScore=true;
	}
	if(key== KeyEvent.VK_DOWN){
		left=false;
		right=false;
		up=false;
		down=true;
		enterStairs=false;
                showScore=false;
	}
}