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
Merge pull request #524 from al3jo/patch-1

Adding event into events attribute