fixed keyboard events