add a model for handle key event