object.GetControl("Transform").SetKeyTransition() only work the tick after a key is created
When you create a key with ex: ...SetData("Position/PositionX"... and then try set the key type with object.GetControl("Transform").SetKeyTransition(...) It wont set the transition type in the new key
You need to wait one "tick" and then set the key transition.