added utility to help enter keys and set a timeout