The "activate" signal is usually fired when the user presses Return. However, note that in GtkText both the Return key and the arrow keys need to be combined with the Control key in order to have their usual effect.
Callback function