Modify algorithm for the progress bar and keypress event listener