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