check input for action command