By placing a group of keys on a panel in B4X, for example, you can display or hide the entire group at once. You can also place a layout in a part of a B4X layout in B4X. It may take some searching on the B4X website, but with the great search function on the B4X website and with some help from B4X users, a lot is possible in the B4X program code.
If you now have a concrete B4X problem of yours in a small B4X example program with a description of your associated B4X program code problem, then we may be able to help you get a concrete B4X solution for your B4X program code challenge.