This is a question about why we are structuring our program this way. (getting back into programming from decades away, apologizes if this is simplistic)
It seems to me that our using a stack of If, else if statements requires that our method be completed while the key is being held down. I suppose that isn’t an unreasonable assumption but is discomforting and in big methods and rapid gameplay it may be false.
I would prefer to assign to a variable the value of the keypress. I can’t find a method that dose this, is there one? Input.GetKeyDown () returns a boolean.