After adding if statement :
if (Input.GetKeyDown(KeyCode.UpArrow)); {
print(“Up arrow pressed”);
}
warning statement CS0642: possible mistaken empty statement appears.
when I run program the up arrow responds like it is being pressed repeatedly but does not respond when actually pressed.
I have added a snippet of my whole code, the warning, and what the program looks like when running.