Added ESC key handling in html reports