/Engine/Source/Runtime/SlateCore/Public/Input/Reply.h
An event should return aFReply::Handled().ReleaseMouseLock()to ask the system to release mouse lock on a widget
[FReply](API\Runtime\SlateCore\Input\FReply) & ReleaseMouseLock()