added key handler to close menu on ESC and show menu on click.