So if you want a function which modifies focus, it should not be called select-frame-window: it needs to have "focus" in its name.