A long time ago, I learned a piece that ends on a certain g minor chord. Once in a while, I am able to tell instantly and exactly that a chord, either out of the blue or in a totally separate piece, is g minor. I recognize this because I knew a specific g minor chord in a piece I learned a long time ago.