esc key returns to index