Handle data-on-keydown attribute.