private boolean handleDialerKeyDown(int keyCode, KeyEvent event) {
    Log.v(this, "handleDialerKeyDown: keyCode " + keyCode + ", event " + event + "...");

    // As soon as the user starts typing valid dialable keys on the
    // keyboard (presumably to type DTMF tones) we start passing the
    // key events to the DTMFDialer's onDialerKeyDown.
    if (mDialpadFragment != null && mDialpadFragment.isVisible()) {
      return mDialpadFragment.onDialerKeyDown(event);

      // TODO: If the dialpad isn't currently visible, maybe
      // consider automatically bringing it up right now?
      // (Just to make sure the user sees the digits widget...)
      // But this probably isn't too critical since it's awkward to
      // use the hard keyboard while in-call in the first place,
      // especially now that the in-call UI is portrait-only...
    }

    return false;
  }