Added a key event