[Toolbar] Add the feature for key event.