How to add reflection key?

I want to add a Reflection key in material settings, but it doesn’t work properly.

This is code I used.

“AddReflectionKey” and “AddTextureWeightKey” ,
Neither of them throws an error, and the key is created, but the set weight is not entered. (I set the weight to be 0.0, but when I check with GetReflection, it still shows 100.0.)

Adding an Opacity key with “AddOpacityKey” in the same way worked perfectly.

Could someone help me please?