added KEY_TYPED event.