Press and release a key on an element (the element which has the focus, or one given): keydown and then keyup.
The element which gets the key
The value of the key, such as a or Enter
Options for the events (for example code, shiftKey)
False when keydown was cancelled, so its default action did not happen
Press and release a key on an element (the element which has the focus, or one given): keydown and then keyup.