Use interpretKeyEvents() instead of handleEvent() of inputContext
to simplify detecting key handling status.