InputEvent properties example

Note: event.data, event.inputType is not supported in Firefox, IE