Figuring out how keys are created