The very simple emulating the Esc key pressed code.