Because the key mapping profile is serialized as a subobject of the UEnhancedInputUserSettings and requires some custom serialization logic, you should not override the Serialize method on your custom key profile.