@Override
    public void keyPressed(int key, char character, GUIComponent component) {
        String entryString = entryText.getText();

        if (GraphicalFont.isStandardChar(character)) {
            setEntryText(entryString + character);
        }

        switch (key) {
            case (Keyboard.KEY_RETURN) : {
                this.deactivate();
                actionPerformed();
                break;
            }
            case (Keyboard.KEY_ESCAPE) : {
                this.deactivate();
                break;
            }
            case (Keyboard.KEY_DELETE) : {
                if (entryString.length() > 0) {
                    setEntryText(entryString.substring(0, entryString.length() - 1));
                }
                break;
            }
            case (Keyboard.KEY_BACK) : {
                if (entryString.length() > 0) {
                    setEntryText(entryString.substring(0, entryString.length() - 1));
                }
                break;
            }
        }
    }