public void handleInput() {
		if (Keys.isPressed(Keys.ESCAPE))
			gsm.setPaused(true);
		if (player.getHealth() == 0)
			return;
		player.setUp(Keys.keyState[Keys.UP]);
		player.setDown(Keys.keyState[Keys.DOWN]);
		player.setLeft(Keys.keyState[Keys.LEFT] || Keys.keyState[Keys.A]);
		player.setRight(Keys.keyState[Keys.RIGHT] || Keys.keyState[Keys.D]);
		player.setJumping(Keys.keyState[Keys.BUTTON1]);
		player.setGliding(Keys.keyState[Keys.BUTTON2]);
		if (Keys.isPressed(Keys.BUTTON4))
			player.setFiring();
		if (Keys.isPressed(Keys.BUTTON3))
			player.setScratching();
		if (Keys.isPressed(Keys.HOME))
			populateEntity();
	}