Paused game and my sprite can still change appearance despite not being able to move

So i understand what i have done and what i need to do to fix it, the problem is how to approach it.

Basically what happened is that i followed a tutorial on how to create a pause menu. The pause menu functions normally, when paused my sprite does not move at all but changes position(looks forward when s is pressed and looks right when d is pressed).

I need a way to temporarily disable the assigned key code with the sprite phases. Any ideas how, here’s the script for my sprite.

Well, you can do something like this:

void Update () {
    if (PauseButton.gamePaused)

    WalkPerspective ();
    Walking ();

It should stop the sprite from rotating.