/* Event notification function for SIMPLE_TEXT_IN.WaitForKey event Signal the event if there is key available */
VOID EFIAPI VirtualKeyboardWaitForKey(IN EFI_EVENT Event, IN VOID *Context)
/* Event notification function for SIMPLE_TEXT_IN.WaitForKey event Signal the event if there is key available */
VOID EFIAPI VirtualKeyboardWaitForKey(IN EFI_EVENT Event, IN VOID *Context)
{
  gBS->Stall (1000);
  VirtualKeyboardTimerHandler (NULL, VIRTUAL_KEYBOARD_DEV_FROM_THIS (Context));
  if (!EFI_ERROR (VirtualKeyboardCheckForKey (Context))) {
    gBS->SignalEvent (Event);
  }
}