Is there anyway i can negate my keyfunctions from being activated when i press a certain key?

Alright here’s what I mean. Maybe this isn’t the right way of doing it but this is the best method I can think of.

So like. I have my character able to move when ever I press the keys left or right arrows.

But I want these keys to be inactive when ever I press another key such as “W”.

When ever I press “W” I want to be able to move my character at a velocity of 5 or so.

But I do not want my arrow key controlers effecting the movement of my character, the moment I press the “W” Key.

Any help would be appreciated, dudes!

I’m not sure how you have it setup now, but you could just put your logic for your arrow keys inside an if statement. Something like this:

if(!Input.GetKeyDown(KeyCode.W)
    {
	     //Your left and right arrow key logic
	}