Get the key
You climb down the hat rack and get the LARGE KEY and add it to your INVENTORY.

You wonder if it's okay to be rummaging through your pre-memory loss self's stuff. This stuff is probably here for a reason and you're just messing it all up. Then again you suppose there isn't much else you can do, you're stuck in some hat dimension and there aren't any other ways to escape.

Try opening the safe as is