Im having a problem with my KeyListener.
In the "public void keyTyped(KeyEvent ke)" method, I am trying to detect when the user presses the non-keypad down button. I used the following code:
if(ke.getKeyChar() == KeyEvent.VK_DOWN)
This works for nearly every key. The exceptions are the up, down, left, and riight, and a few others that aren't relevant to my problem.
I also tried using ke.getKeyCode() but that didn't work either. Does the KeyListener ignore key events on these keys?