public void getInput()
	{
		if(Keyboard.isKeyDown(Keyboard.KEY_D))
		{
			right=true;
			left=false;
			walking=true;
			xSpd=xVel;
		}
		else if(Keyboard.isKeyDown(Keyboard.KEY_A))
		{
			left=true;
			right=false;
			walking=true;
			xSpd=-xVel;
		}
		else{xSpd=0; walking=false;}

		if(Keyboard.isKeyDown(Keyboard.KEY_SPACE) && !jumping && !inAir)
		{
			ySpd=jumpSpeed;
			jumping=true;
		}

		if(Keyboard.isKeyDown(Keyboard.KEY_E))
		{
			x=tileMap.getPlayerSpawnX();
			y=tileMap.getPlayerSpawnY();
		}
	}