set-event-type in control-event%

Sets the type of the event. See control-event% for information about each event type symbol.