public void keyPressed(KeyEvent e) {
			
			int key = e.getKeyCode();
			switch(key) {
			case KeyEvent.VK_W: 
				p.setMoveUp(true);
				break;
			case KeyEvent.VK_S: 
				p.setMoveDown(true);
				break;
			case KeyEvent.VK_A: 
				p.setMoveLeft(true);
				break;
			case KeyEvent.VK_D: 
				p.setMoveRight(true);
				break;
			}
		}