Blueprint to block movement by one of axis

Hello

I am using Top-Down template and already changed mouse movement to WASD controls.

Though what i want to do is to allow only one axis change at time , so if you are pressing W - char goes up , if you in the meantime press A - it does not go by diagonal but goes left.

Hope the question is clear…

Guys can you please help me with this ? I am pretty newbie with Blueprints and want to learn more about controls :slight_smile: thanks !