The two principal things that you are going to want to do with it are attach to the "activate" signal, which indicates that the user has pressed the Return or Enter key, and read the text. The first is accomplished using something like:
Las dos cosas fundamentales que se querrán hacer con ella es conectarle la señal "activate", que indica que el usuario ha pulsado la tecla Return o la tecla Enter , y leer el texto. Lo primero se consigue usando algo como: