simple solution. block keybind when you already have cursor visible (which happens when you have chat or browser open as long as you did not change that😞
mp.keys.bind(0x45, false, function() {
if (mp.gui.cursor.visible) return;
here-you-would-open-browser-for-inventory-which-is-not-executed-if-cursor-is-displayed
});