Capture mouse help

Godot 4

In my 3d game I have the mouse captured. How do I tell if the mouse if being moved left right up or down still?

Hi!
Use InputEventMouseMotion as mentioned in
MouseMode