New technique for recognizing keys