InputEvent example

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

Input element

Textarea element

Elements with contenteditable='true'