@Override
	public void keyPressed(KeyEvent e) {
		System.out.println("K"+e.getKeyCode());
		if(e.getKeyCode()==87){
			//W-UP
			cp.moveDir('u', 1);
		

		}else if(e.getKeyCode()==83){
			//S-Down
			cp.moveDir('d', 1);
		}else if(e.getKeyCode()==68){	
			//A-Right
			cp.moveDir('r', 1);
		}else if(e.getKeyCode()==65){
			//D-Left
			cp.moveDir('l', 1);
		}
		
		if(e.getKeyCode()==38){
			//UP
			cp.moveDir('u', 2);
		

		}else if(e.getKeyCode()==40){
			//Down
			cp.moveDir('d', 2);
		}else if(e.getKeyCode()==39){	
			//Right
			cp.moveDir('r', 2);
		}else if(e.getKeyCode()==37){
			//Left
			cp.moveDir('l', 2);
		}
		
		cp.repaint();
		
	}