how not to run the character backwards ?

The third-person character, with fixed camera behind. Now I put the chance to run, but the character corrects me in 4 directions. I wanted, however, that even pressing the button to enable the race, if the character went back it would not activate. Only the moment the character goes forward, left or right does it activate and start running.