Input generalized method

Exception if action nr lower than 1 or higher than allowed choices.