[ad_1]
I would guess that you can use e.g. gdk_display_put_event(), but your question is not very clear.
Do you expect other applications than your own to see the emulated keyboard events? Not sure GDK can do that.
[ad_2]
solved How simulate a key event with GDK? [closed]