How to change object's velocity direction when button pressed

Hello, I’m new to unity and I need some help. I want to change object’s constant velocity direction when one button is pressed. I know it is simple, but I can’t figure it out.33560-question.jpg

Depending on which axis this is a view of, something like this should work:

if(Input.GetKeyDown(KeyCode.Q)){
	yourSpeedVariable.x *= -1;
}