There is some special initialisation to do in order to catch some particular events. In fact, you must set the correct event mask bit of your widget before getting some particular events.
lets you catch the key release events. If you want to catch every events, simply us the GDK_ALL_EVENTS_MASK event mask.
All the event masks are defined in the gdktypes.h file.