public void update(GameContainer gc, StateBasedGame sbg, int delta)
	{
		Input input = gc.getInput();
		if(delay <= 0)
		{
			if(input.isKeyDown(input.KEY_BACK))
			{
				eraseText();
			}
			else if(input.isKeyDown(input.KEY_SPACE))
			{
				text += " ";
			}
			else if(input.isKeyDown(input.KEY_RETURN))
			{
				enter = true;
			}
			else
			{
				typeKey(input);
			}
		}
		else delay -= delta;
				
	}