Use printlns to verify what the code is actually doing.
print the key code in the key pressed event...
Inside the while(true) loop, print out the values of up, down, left, and right to see if they...