MV Arrow input in two windows

Hello again, i trying to make a new makeCommandList window and i found this error.

How to prevent the arrow input to work in the scene_Menu?
JavaScript:
/*
------------------------
Scenes
--------------------------
*/


function Scene_Testing() {
    this.initialize.apply(this, arguments);
    
}

Scene_Testing.prototype = Object.create(Scene_Menu.prototype);
Scene_Testing.prototype.constructor = Scene_Testing;

Scene_Testing.prototype.initialize = function() {
    Scene_Menu.prototype.initialize.call(this);
    
};


Scene_Testing.prototype.create = function () {

    Scene_Menu.prototype.create.call(this);
 
    this._AnewWindow = new Window_Testing(300, 300, 700, 600);
    this._AnewWindow.setHandler('cancel', this.popScene.bind(this));
    this.addWindow(this._AnewWindow);
    

};




/*
------------------------
Window
--------------------------

*/

function Window_Testing () {
    this.initialize.apply(this, arguments);
}

Window_Testing.prototype = Object.create(Window_Command.prototype);
Window_Testing.prototype.constructor = Window_Testing;

Window_Testing.prototype.initialize = function (x, y, width, height) {
    Window_Command.prototype.initialize.call(this, x, y, width, height);
    
}

Window_Testing.prototype.makeCommandList = function(index) {
    this.addCommand(TextManager.status, 'status'); //<-This is just a filler
    this.addCommand(TextManager.status, 'status'); //<-This is just a filler
    }
There's a few ways that you can do this but first I think its important to note here that when you're inheriting Scene_Menu for your test scene you're actually creating a second main menu onto of the existing one when clicking on the Test option. This is because Scene_Menu's create function (which you are calling with `Scene_Menu.prototype.create.call(this);`) is:
Code:
Scene_Menu.prototype.create = function() {
    Scene_MenuBase.prototype.create.call(this);
    this.createCommandWindow();
    this.createGoldWindow();
    this.createStatusWindow();
};
ie it creates a new command window and activates it, which is why you see the command window on the left still moving.

What you probably want to do is to inherit from Scene_MenuBase instead of Scene_Menu, which just creates an empty window layer and a background with a screenshot of the previous scene.

Code:
Scene_MenuBase.prototype.create = function() {
    Scene_Base.prototype.create.call(this);
    this.createBackground();
    this.updateActor();
    this.createWindowLayer();
};
There's a few ways that you can do this but first I think its important to note here that when you're inheriting Scene_Menu for your test scene you're actually creating a second main menu onto of the existing one when clicking on the Test option. This is because Scene_Menu's create function (which you are calling with `Scene_Menu.prototype.create.call(this);`) is:
Code:
Scene_Menu.prototype.create = function() {
    Scene_MenuBase.prototype.create.call(this);
    this.createCommandWindow();
    this.createGoldWindow();
    this.createStatusWindow();
};
ie it creates a new command window and activates it, which is why you see the command window on the left still moving.

What you probably want to do is to inherit from Scene_MenuBase instead of Scene_Menu, which just creates an empty window layer and a background with a screenshot of the previous scene.

Code:
Scene_MenuBase.prototype.create = function() {
    Scene_Base.prototype.create.call(this);
    this.createBackground();
    this.updateActor();
    this.createWindowLayer();
};
Thank you

Original thread: https://forums.rpgmakerweb.com/threads/arrow-input-in-two-windows.156495/