make the initial page listen to keydown event[ESC and ENTER]