--add the key event handler