Okay, awesome!
So first things first: You can put the trace on tick and move the sphere to that location.
Make a new variable called “Old Mouse Position” and set it with this on “begin play”. This is how we’ll set it originally, you’ll see why in a moment. Use the “World Location” off of that and save that vector.

Next, on tick, use that same bit of code, and check if your “Old Mouse Position” variable == the World Location output here. If it IS NOT THE SAME, that means you moved! You make a branch there, and off of the false branch, SET “Old Mouse Position” using the one you got here on tick, and run the rest of your code here:
Let us know if anything is too confusing or you need any additional help!
