I want to add that you can enter the cargo hold by going to the Menu (Tab on PC), then click on lower left where your ship is and see the cargo hold (F on PC)
You can also move things from the cargo hold to your inventory even if you’re outside of your ship, I don’t remember if you can do so the other way around.