I have an inventory system that calls the "item" parameter and everything mostly works as it should. However when I move to another layout the inventory doesn't carry over.
The spots the items were in are saved, meaning any items I pick up in the second room won't be placed in parts of the inventory that had items in the previous layout. When I return to the original layout the items return to where they were, and vice versa.
The key actually does stay, but that's only because transitioning rooms removes it from the array, but not the inventory screen. So it is overwritten. That's another little bug if anyone else knows something about that too haha.