How to block changing systems

Hi i want to know if there is a way to not change the system using left or right on the gamepad.
Im using a carrousel vertical for the systems and only can move using up and down (thats ok) but when i select a system im using again a vertical carrousel for scrolling the roms but if i accidentaly push left or right it changes to another system, so is there a way to remove that? Thanks!