PaulS:
The problem is pressing the down key and holding, will it run the case for the UP key.
You need three cases, obviously, AND you need to keep track of the last key pressed (the one before the repeat code appears) so you know what is being repeated.
I understand what you are saying but I don't know how to implement that.
delay(500);Not a good idea...
why is the delay not a good idea? asking since I don't know why.