improved key listeners for moving to next slide when video is played or
after branching