TopDown movement from scratch

Hello. Could someone help me with creating a walking mechanism. I need a character to go while holding the mouse button. But only in the direction where the cursor is, without the pathfinding, and after the releasing has the character stopped.
I temporarily solved it by inserting a node: Stop Movement after releasing the button. But it has a lot of restrictions for me to walk through cave entrace, etc.
btw. i am using TopDown Template.