I dont want to jump backwards.

So i have this code i followed a little bit, its a jumping while running. But i edited it a little to make it to where i can jog and jump. It works fine, but the problem i have is I jump backwards if i hold s while shifting or just regularly jogging.