KeyboardEventの処理を修正