How to disable the input?

Hi guys, got a problem. I’m using the dialogue plugin and working in the TopDown template changed to 3rd person. Diaolgue starts:
Imgur

In theory this should manage when the input for player should be changed to UI only, but when I reach the dialogue overlap, the character keeps walking straight all the time. After pressing dialogue button option, it stops.
Imgur

This is what happened after pressing the button
Imgur

and that’s the function. How can I solve it and make the player stop just after the dialogue start?
Imgur

I’m not sure how to fix the problem, but I am worried that you set input mode every Tick. That seems like something that should not be happening and then re-happening 60 times per second.