@Override
	public void setKeyState(int key, boolean state)
	{
		byte index = -1;

		if(key == settings.forwardKey.key)
		{
			index = 0;
		}

		if(key == settings.backKey.key)
		{
			index = 1;
		}

		if(key == settings.leftKey.key)
		{
			index = 2;
		}

		if(key == settings.rightKey.key)
		{
			index = 3;
		}

		if(key == settings.jumpKey.key)
		{
			index = 4;
		}

		if(key == settings.runKey.key)
		{
			index = 5;
		}

		if(index >= 0)
		{
			keyStates[index] = state;
		}

	}