added escape button functionality to stop video