MZ Help creating a Skill Select Menu

I'm trying to create a custom "Skill Select" menu that would be similar in format to the Item Select menu. Ideally, it would would be opened by the "S" key and display the skills of all actors in order of Actor 1 to Actor 6 (my game has 6 party members out at once). The dead actors would have their skills grayed out and unable to be selected unless revived. Once the player selects a skill, a common event would be activated by a switch and when the "A" key is pressed, that party member would be able to use an ability on the field.

Since all of that is impossible with my limited JavaScript skills, I've settled for just trying to get the menu to open in the first place. I already know how to bind some things to keys (i.e. pressing the "Y" key to display a message), so I have that taken care of. I looked at the Item Select code in Visual Studio Code and tried to replicate it for a plugin of my own but I'm stuck at how to bind it to a key. I'm pretty sure I would have to use SceneManager.push somewhere but I'm confused as to how I would go about doing that. Here is the code:

Spoiler
JavaScript:
function Window_EventSkill() {
    this.initialize(...arguments);
}

Window_EventSkill.prototype = Object.create(Window_SkillList.prototype);
Window_EventSkill.prototype.constructor = Window_EventSkill;

Window_EventSkill.prototype.initialize = function(rect) {
    Window_SkillList.prototype.initialize.call(this, rect);
    this.createCancelButton();
    this.openness = 0;
    this.deactivate();
    this.setHandler("ok", this.onOk.bind(this));
    this.setHandler("cancel", this.onCancel.bind(this));
};

Window_EventSkill.prototype.setMessageWindow = function(messageWindow) {
    this._messageWindow = messageWindow;
};

Window_EventSkill.prototype.createCancelButton = function() {
    if (ConfigManager.touchUI) {
        this._cancelButton = new Sprite_Button("cancel");
        this._cancelButton.visible = false;
        this.addChild(this._cancelButton);
    }
};

Window_EventSkill.prototype.start = function() {
    this.refresh();
    this.updatePlacement();
    this.placeCancelButton();
    this.forceSelect(0);
    this.open();
    this.activate();
};

Window_EventSkill.prototype.update = function() {
    Window_Selectable.prototype.update.call(this);
    this.updateCancelButton();
};

Window_EventSkill.prototype.updateCancelButton = function() {
    if (this._cancelButton) {
        this._cancelButton.visible = this.isOpen();
    }
};

Window_EventSkill.prototype.updatePlacement = function() {
    if (this._messageWindow.y >= Graphics.boxHeight / 2) {
        this.y = 0;
    } else {
        this.y = Graphics.boxHeight - this.height;
    }
};

Window_EventSkill.prototype.placeCancelButton = function() {
    if (this._cancelButton) {
        const spacing = 8;
        const button = this._cancelButton;
        if (this.y === 0) {
            button.y = this.height + spacing;
        } else if (this._messageWindow.y >= Graphics.boxHeight / 4) {
            const distance = this.y - this._messageWindow.y;
            button.y = -button.height - spacing - distance;
        } else {
            button.y = -button.height - spacing;
        }
        button.x = this.width - button.width - spacing;
    }
};

Window_EventSkill.prototype.includes = function(item) {
    const stypeId = $gameMessage.skillChoiceStypeId();
    return DataManager.isSkill(item) && item.stypeId === stypeId;
};

Window_EventSkill.prototype.needsNumber = function() {
    const stypeId = $gameMessage.skillChoiceStypeId();
    if (stypeId > 0) {
        return $dataSystem.skillTypes;
    }
};

Window_EventSkill.prototype.isEnabled = function(/*skill*/) {
    return true;
};

Window_EventSkill.prototype.onOk = function() {
    const skill = this.item();
    const skillId = skill ? skill.id : 0;
    $gameVariables.setValue($gameMessage.skillChoiceVariableId(), skillId);
    this._messageWindow.terminateMessage();
    this.close();
};

Window_EventSkill.prototype.onCancel = function() {
    $gameVariables.setValue($gameMessage.skillChoiceVariableId(), 0);
    this._messageWindow.terminateMessage();
    this.close();
};

(I know that there are plugins out there that essentially do the same thing such as Visustella's but I'm trying to get into the habit of making my own plugins so I can improve.)
(I know that there are plugins out there that essentially do the same thing such as Visustella's but I'm trying to get into the habit of making my own plugins so I can improve.)

I know VisuStella's code is obfuscated but if you have access to Yanfly's MV plugin suite, you could poke around in the YEP Select Skill plugin. I always liked doing that to help me understand how things are functioning under the hood.

Original thread: https://forums.rpgmakerweb.com/threads/help-creating-a-skill-select-menu.171042/