Press ESC to close

function