implemented key event, implemented getView