/Engine/Source/Editor/CurveEditor/Public/ICurveEditorToolExtension.h
This is called when the tool is deactivated by switching to another tool. This will be called before the new tool has OnToolActivated called.
void OnToolDeactivated()