PRBool altKey; aKeyEvent->GetAltKey(&altKey); if (altKey) return NS_OK;
NS_IMETHODIMP nsMenuBoxObject::HandleKeyPress(nsIDOMKeyEvent* aKeyEvent, PRBool* aHandledFlag){  *aHandledFlag = PR_FALSE;  NS_ENSURE_ARG(aKeyEvent);  nsIFrame* frame = GetFrame();  if (!frame)    return NS_OK;  nsIMenuFrame* menuFrame;  CallQueryInterface(frame, &menuFrame);  if (!menuFrame)    return NS_OK;  PRUint32 keyCode;  aKeyEvent->GetKeyCode(&keyCode);  switch (keyCode) {    case NS_VK_UP:    case NS_VK_DOWN:    case NS_VK_HOME:    case NS_VK_END:      PRBool altKey;      aKeyEvent->GetAltKey(&altKey);      if (altKey)        return NS_OK;      return menuFrame->KeyboardNavigation(keyCode, *aHandledFlag);    default:      return menuFrame->ShortcutNavigation(aKeyEvent, *aHandledFlag);  }}