Made performKeyToDegree much closer to inverse of
performDegreeToKey #1163