Fix a crash which occurs due to a CHECK firing in the HWNDMessageHandler::OnKeyEvent...