UAnyButtonInputBehavior::SetUseMiddleMouseButton

Configure the target Mouse button to be the middle button