public void update() {
		up = keys[KeyEvent.VK_UP];
		down = keys[KeyEvent.VK_DOWN];
		left = keys[KeyEvent.VK_LEFT];
		right = keys[KeyEvent.VK_RIGHT];
		enter = keys[KeyEvent.VK_ENTER];
		if (Main.getPlayers() == 2) {
			up2 = keys[KeyEvent.VK_W];
			down2 = keys[KeyEvent.VK_S];
			left2 = keys[KeyEvent.VK_A];
			right2 = keys[KeyEvent.VK_D];
			space = keys[KeyEvent.VK_SPACE];
		}
		p = keys[KeyEvent.VK_P];
		esc = keys[KeyEvent.VK_ESCAPE];
	}