Since a key usually requires a keyhole, to dream of one without the other indicates some kind of confusion between the inner and outer self.

A keyhole by itself can represent gossip or treachery by a close associate.