Save the last used filter
allow the inventory key and the serverGuiKey for closing the gui