How to add a listener to a JTextField for up, down left, right arrow?
<p>I need to write an arrow listener for my JTextField. if a try with:</p>

<pre><code>public void keyTyped(KeyEvent e) {
   if (e.getKeyCode() == KeyEvent.VK_DOWN) {
    ......
   }
}
...
</code></pre>

<p>This is not good.( I think that JTextField is not responding to a special key listener.)</p>
