Made performKeyToDegree much closer to inverse of performDegreeToKey 

See issue #1163