"Accessed none trying to read property" when trying to close Inventory

Try Set Input Mode UI Only when opening the inventory.

Can’t find where its supposed to close. Try using the same input event in the PC to toggle it.