Same key shortcut conflicts when importing modules

Hello! I’m migrating my long CEP panel to a UXP plugin, and I’m using the require() method to import each script.js, for better maintenance of them, my problem is that the vast majority of them are modal windows and I’m not able to solve it a serious problem, which are conflicts when I add the “Enter” key shortcut in different scripts. Does anyone know a way to resolve this? Thanks.

const m5 = require("./js/Janelas/D1FtBook.js");
const m6 = require("./js/Janelas/D2Print.js");