Walk back has a delay from idle state

I fixed it, It had nothing to do with my code. ALT+S is the shortcut for simulate and it was interfering with my game for a second before it passed my shortcut for walk. So for anyone in the future running into issues with ALT+S binds having delayed results in the play editor this is the reason. Simply go to editor preference>search simulate>find play world (pie/sie) and remove or rebind simulate. And your hotkey should work fine then.