Merge "Fix dispatchKeyEvent earlier than setInputCallback"