If an event is cancelable, the preventDefault method is used to signify that the event is to be canceled, meaning any default action normally taken by the implementation as a result of the event will not occur.
The stopPropagation method is used prevent further propagation of an event during event flow. The event will complete dispatch to all listeners on the current EventTarget before event flow stops. This method may be used during any stage of event flow.
The text string was input by an unknown means.
The text string was input through a keyboard.
The text string was pasted in from a clipboard.
The text string was inserted as part of a drag-and-drop operation.
The text string was entered through an Input Method Editor.
The text string was selected from a set of options presented, such as from a form.
The text string was input through a pen/tablet device and processed by handwriting recognition software.
The text string was input by a voice device and interpreted by speech recognition software.
The text string was inserted as part of an operation involving multiple input modalities in combination, such as pointer-enhanced speech.
The text string was inserted via a script operation on the DOM.