readkey with indefinite time limit