How can i make a 4 direction system in unreal engine 5.3

im trying to make a tank that can only move up, down, left, and right. i also want it so it can only move 1 direction at a time so if im clicking up it wont go to other directions unless i stop clicking up, im using the enhanced input system