To dream of keys may represent a multitude of facets in the dreamer's life, including hidden secrets, recognizing responsibility, the ability to gain access to a situation and hence control, and opportunity. The dreamer may be keeping thoughts, feelings, or emotions to themselves.
When a key is lost, the dream is indicative of fearing the loss of seniority, rank, or self-control.
When a key is given to somebody else, control, responsibility, or secrets may be getting passed on to somebody else.
Finding keys in a dream is akin to solving a problem in life.
Broken keys in a dream mean that your life is fraught with arguments and a separation may occur.
The sound of keys rattling in a dream is indicative of optimism about life and a feeling of control over the direction you are taking in life. You can feel confident that you are making good decisions.