Reduce speed if moving backwards

Here is a quick way of doing what you want.

That is just based on your input, if you want to do it based on your characters location/velocity and rotation you would want to use a DOT Product.