I've started unity dev with Ben's udemy course and while working on ‘Respond to Player Input’ in the Number wizard module, I ran with an issue where a single keystroke often types out 30+ lines of console output.
if (Input.GetKey(KeyCode.UpArrow))
{
print("up arrow key is held down");
}
Please guide me.
![](https://uploads.gamedev.net/forums/monthly_2021_08/1bb1165114a041f9ab9e10872ff9f155.Keystoke-error.png)