Using Command-backtick (⌘-`) to toggle between windows As far as I can tell, Command-backtick (⌘-`) behaviour in OSX 10.9 works as follows:

Given a stack of windows for the current application 1 2 3 4 5 6 in order of most to least recently used:


Do it once: switch to window 2 (for the current application).
Do it again: switch to window 3.


However, if you click on window 2 before doing Command-` for the second time, window 1 gets the focus instead of window 3.

This behaviour differs from that of Command-Tab, which seems to always work as though the new application's current window had been clicked on, unless you hold Command in between presses of Tab.  While you continue to hold Command, a little overlay window is displayed to give you a visual representation of which applications are available and are getting the focus.

Is there a way to make Command-` work in a manner similar to that of Command-Tab?  I.E. so that the window stack will be reordered when, and only when, Command is released?  I find it distracting to have to a) remember whether or not I've clicked on the window I'm looking at and b) scrunch a finger down to engage the Shift key.
In MacOS 10.13 (High Sierra) I cannot get the Cmd-` to work at all unless the application itself has a menu command to cycle through windows.  If it does, it probably uses that key code; if it doesn't have a key code but has a menu item, it's easy to add the key code in System->Keyboard->Shortcuts.  If it does not have a menu for that, e.g. Safari, then I've found no way to cycle through windows. it does have a Next Tab command.