Select Command+Tab to return to your previous window on a Mac. Hold Command and press the Tab key, then select Left or Right to cycle through all open windows on a Mac.