UCurveEditorSettings::SetSnapTimeToSelection

Set whether to snap the time to the currently selected key.