I think most tool just check the file that is passed in if it's RSA or DSA.  We almost certainly want to prompt the user for a passphrase if needed.  I haven't looked at exactly how we would detect that.  I'm guessing if the key is encrypted we can assume that a passphrase is required.