I just watched the episode again and I think your son is right rumplegoldfan. Snow had just slept and is now making the bed. She then lifts the matress to do so and the key falls down. That makes me think it’s been there for some time and Regina put it there.