Implement NSCoding and NSSecureCoding for the HotKey.