I drew a diagram to facilitate understanding: put the four macros of AB CD into group 1, group 2 in pairs, and switch between group 1 and group 2 through F1 and F2. Assuming that group 1 is activated now, users can switch between macros A and B using the Z key.
When I want to use Group 2, press F2 to switch, and then use the same Z key to switch between macros C and D
Of course, F1, F2, Z are examples. In fact, users can customize the keys