Merge "Let InputDispatcher wake quickly when we ready stop process pending key" into main