public void keyReleased(KeyEvent e) {
		switch (e.getKeyCode()) {
		case KeyEvent.VK_W:
		case KeyEvent.VK_UP:
			up = false;
			break;
		case KeyEvent.VK_A:
		case KeyEvent.VK_LEFT:
			left = false;
			break;
		case KeyEvent.VK_S:
		case KeyEvent.VK_DOWN:
			down = false;
			break;
		case KeyEvent.VK_D:
		case KeyEvent.VK_RIGHT:
			right = false;
			break;
		}
	}