add keyboard event.