Press Escape, then Tab to leave the command prompt. Shift+Tab also moves focus backward.