Utility class to handle keyboard input from the user