GdkEventKey.type

the type of the event (GDK_KEY_PRESS or GDK_KEY_RELEASE).

struct GdkEventKey
GdkEventType type;