Add keyCode attribute to event