test function of  input from keyboard