Changed to throw an input in case of bad state action rather than defaulting to enter