/* If both RegsiteredData and InputData is NULL, then ASSERT(). */
BOOLEAN IsKeyRegistered(IN EFI_KEY_DATA *RegsiteredData, IN EFI_KEY_DATA *InputData)
/* If both RegsiteredData and InputData is NULL, then ASSERT(). */
BOOLEAN IsKeyRegistered(IN EFI_KEY_DATA *RegsiteredData, IN EFI_KEY_DATA *InputData)
{
  ASSERT (RegsiteredData != NULL && InputData != NULL);
  if ((RegsiteredData->Key.ScanCode    != InputData->Key.ScanCode) ||
      (RegsiteredData->Key.UnicodeChar != InputData->Key.UnicodeChar))
  {
    return FALSE;
  }
  return TRUE;
}