Fixed javascript failure when event is not defined.
iOS specific hack to get later button to work with keyboard up