Reading the keyboard

Hi everyone,

I've made a simple Tetris game, music, textures and all… to learn JME, made the whole game (and even a similar system as gamestates, before I realized that these were available).

Now, the only thing that is missing is a way to read the input (any key) from the keyboard to insert the player name for the highscores.

The question is, how can I make JME wait any key from the keyboard without doing an entry to that key in inputhandler, in order to let the player enter a string to represent is name in the Higscores table?

Thanks in advance


KeyInput.addListener(new KeyInputListener(){
     public void onKey(char character, int keyCode, boolean pressed){
               System.out.println("The user pressed the "+character+"-key.");