public void onKeyReleased(final int keyCode){
  if (pressedStateKeys.contains(keyCode)) {
    pressedStateKeys.removeAll(Collections.singleton(keyCode));
  }
 else {
    logger.warn("Released key " + Integer.toString(keyCode) + " was not found in pressedStateKeys list");
  }
}

public void onKeyReleased ( final int keyCode ) { if ( pressedStateKeys . contains ( keyCode ) ) { pressedStateKeys . removeAll ( Collections . singleton ( keyCode ) ) ; } else { logger . warn ( "Released key " + Integer . toString ( keyCode ) + " was not found in pressedStateKeys list" ) ; } }
remove a keypress from pressedstatekeys list .
