This function simulates a user pressing a key. The argument, key, is just like the argument to the get-key-code method of the key-event% class.
Note:
To send the ``Enter'' key, use #\return,
not #\newline.
The 'shift or 'noshift modifier is implicitly set from key, but is overridden by the argument list. The 'shift modifier is set for any capitol alpha-numeric letters and any of the characters returned by keys:get-shifted-key-list.
If conflicting modifiers are provided, the ones later in the list are used.