code: protected void logKey (String msg, KeyEvent e)
      {
          if (DEBUG_EVENTS || _debugTyping.getValue()) {
              int keyCode = e.getKeyCode();
              log.info(msg, "key", KeyEvent.getKeyText(keyCode));
          }
      }
docs: Logs the given message and key.