Implement key normalization