Have user press a key and then determine proper parameters from the rise up and down down times from the sampled data.