title: Detecting and acting on keyboard direction keys in Java
body: <p>G'day all, </p>
  
  <p>I have a console project where it is intended the user presses the keyboard direction keys (non-numeric keypad) to move an avatar. I am having difficulty coding to check for the press of these keys. In Pascal it was easy enough to use "readkey" and code, for example, for #80 for the down keypress. However, I am stumped how to implement the same functionality in Java, though I think I understand the use of System.in and BufferedInputStream.</p>
  
  <p>Could anyone help me out? Your thoughts or hints are much appreciated. </p>