You need to create a java file that extends KeyListener then you have to override the
keyChar method.
public class MyGui implements KeyListener{
public boolean keyChar(char key, int status, int time){
switch(key){
case Characters.ENTER:
//do whatever when they hit enter
return true;
}
return super.keyChar(key,status,time);
}
}
Something like this should get you started.
|