Fixed key format check
Merge pull request #701 from jazzzz/fix-key-format

Fixed key format check