javax.microedition.lcdui.KeyListener

This is the key listener interface which is used for a slightly more advanced means of listening for and responding to key events. Unlike {@link Canvas} and {@link CustomItem}, the key code that is passed to these methods will be modified by the key modifiers (this means that if shift is held down then letters will be uppercase).