Hold the ⌘ key and keep pressing ` key to switch to the desired window. Use this to switch between the windows of an application.
Hold the ⌘ key and keep pressing Tab key to switch to the desired application. Use this to switch between active applications. We can change the default Mac Keyboard shortcuts from System Preferences => Keyboard => Shortcuts (tab) => Keyboard (list item) #