@Override
    public void keyEnterPressed() {
        if (!Game.RELEASE) {
            if (shouldRender) {
                if (consoleText.isEmpty()) {
                    opening = false;
                    closing = true;
                } else {
                    hudManager.processConsoleCommand(consoleText);
                    opening = false;
                    closing = false;
                    shouldRender = false;
                    consoleText = "";
                    positionY = 0 - MAX_HEIGHT;
                }
            } else {
                shouldRender = true;
                closing = false;
                opening = true;
            }
        }
    }