Movement blueprint

hey guys, what i want to know is: how can I make my char only run forward?? because with the BP that i’m using, when I press run (or Sprint) my Sprint speed is the same for all the directions, and I want to be able to run only if i’m going forward, what I have to change in the BP???

i’ve solved it myself