public boolean directionKeyIsPressed(){
  return pressedStateKeys.contains(KeyEvent.VK_UP) || pressedStateKeys.contains(KeyEvent.VK_DOWN) || pressedStateKeys.contains(KeyEvent.VK_LEFT)|| pressedStateKeys.contains(KeyEvent.VK_RIGHT)|| pressedStateKeys.contains(KeyEvent.VK_KP_LEFT)|| pressedStateKeys.contains(KeyEvent.VK_KP_RIGHT)|| pressedStateKeys.contains(KeyEvent.VK_KP_UP)|| pressedStateKeys.contains(KeyEvent.VK_KP_DOWN);
}

public boolean directionKeyIsPressed ( ) { return pressedStateKeys . contains ( KeyEvent . VK_UP ) || pressedStateKeys . contains ( KeyEvent . VK_DOWN ) || pressedStateKeys . contains ( KeyEvent . VK_LEFT ) || pressedStateKeys . contains ( KeyEvent . VK_RIGHT ) || pressedStateKeys . contains ( KeyEvent . VK_KP_LEFT ) || pressedStateKeys . contains ( KeyEvent . VK_KP_RIGHT ) || pressedStateKeys . contains ( KeyEvent . VK_KP_UP ) || pressedStateKeys . contains ( KeyEvent . VK_KP_DOWN ) ; }
check if any direction key is in " pressed " state .
