Raise a new exception, KeyFormatException, on invalid key data