Adding event into events attribute

Here you are talking about the 'updateOnEnter' function that will be trigered by the key press event on the edit class, but the event was not on the events attribute, so I thought it should be added for clarity