Set type field.
the type of the event (gdk.types.EventType.KeyPress or gdk.types.EventType.KeyRelease).
Set type field.