I know Studio One has a feature where it can detect (pretty closely) the key of an audio clip. I can't remember offhand but there's some videos on Youtube on their channel I think.
But as far as detecting the key, I never do that because I don't need to and I don't care about the key, never...