added resetting timeout on keypress