@Override
    public boolean onKeyDown(int key) {
        super.onKeyDown(key);

        if(key == Keyboard.KEY_RETURN && !scoreSent) {
            scoreSent = true;
            Player player = Application.get().getLogic().getGame().getPlayer();
            HighScores.send(currentInput, player.getExp());
            return true;
        }
        else if(key == Keyboard.KEY_BACK && currentInput.length() > 0 && !scoreSent) {
            currentInput = currentInput.substring(0, currentInput.length()-1);
        }
        else if(getChar(key) != INVALID_CHAR && !scoreSent) {
            currentInput += getChar(key);
            if(currentInput.length() > 3) {
                currentInput = currentInput.substring(0, 3);
            }
        }

        return false;
    }