How can I detect if mouse button is just pressed or released? (Godot 4)

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By thebluetropics

I am trying to detect if my left mouse button is just pressed or released.

:bust_in_silhouette: Reply From: moredear

maybe this will help