Updates the value at key with value in the IO thread.
Arnau Mora
20220829
The preferences key to update.
The value to set at key.