fix keyboard event