I was trying to figure out the differences between the two but I ended up with the same results.
[LESSON]
if (Input.GetKeyDown(KeyCode.UpArrow)){
print(“Up Arrow key was pressed”);
}
[Alternate]
if (Input.GetKeyDown(“up”)){
print(“Up Arrow key was pressed”);
}
One is used with keycode the other just simply says “up” to refer to the up arrow key being pressed.
Slightly different syntax with tested same result.
Happy Coding!