实际就是waitforkey
EFI_STATUS EFIAPI UefiMain(
IN EFI_HANDLE ImageHandle,
IN EFI_SYSTEM_TABLE *SystemTable
)
{
UINTN Index;
EFI_INPUT_KEY key;
SystemTable->BootServices->WaitForEvent(1,&(SystemTable->ConIn->WaitForKey),&Index);
SystemTable->ConIn->ReadKeyStroke(SystemTable->ConIn,&key);
Print(L"=== read<> %c ===",key.UnicodeChar);
return EFI_SUCCESS;
}