public void update() {
		up = key[KeyEvent.VK_UP] || key[KeyEvent.VK_W];
		down = key[KeyEvent.VK_DOWN] || key[KeyEvent.VK_S];
		left = key[KeyEvent.VK_LEFT] || key[KeyEvent.VK_A];
		right = key[KeyEvent.VK_RIGHT] || key[KeyEvent.VK_D];
	}