i think to solve the problem a button should be held down then press up to switch between party<enemy etc. When the button is not held down, we can press up or down left or right to cycle through party members or enemies. In addtion to this when switching from party to enemy it should auto target enemy we are attacking and if there is a group pressing up can cycle through the group only and pressing left and right can target mobs outside group.