Fix typo in detection of hex keys

Errata to f5065. $Key has a capital.