Types a single key. The key should be a string that matches a [Syn.static.keycodes].
The following sends a carridge return to the 'name' element.
Syn.key('\r','name')
Syn.key(options, element, callback) -> HTMLElement
{String}
{optional:HTMLElement}
{optional:Function}
{HTMLElement}
the element currently focused.
Types a single key. The key should be a string that matches a [Syn.static.keycodes].
The following sends a carridge return to the 'name' element.
For each character, a keydown, keypress, and keyup is triggered if appropriate.