UserInput class to detect