public static boolean wasKeyPressed(char c) {
    try {
      if (!keypCheckInitiated) {
        keypCheckInitiated = true;
        keypLastUpdate = System.currentTimeMillis();
      }
      if (keypLastUpdate + TIMEOUT < System.currentTimeMillis()) {
        app.keysPressed.clear();
      }
      Character n = new Character(c);
      for (int i = 0; i < app.keysPressed.size(); i++) {
        if (app.keysPressed.get(i).equals(n)) {
          //app.keysPressed.remove(i);
          return true;
        }
      }
    }// end try
    catch (Exception e) {
    }
    return false;
  } // end waskey released