Keeping an app not in front

I need just the opposite of what is discussed here :

I want to create an app that cannot go to front, so it can send keypresses with RemoteControlMBS.MacPressKey to the current front app.

So basically, instead of bringing the app to front as in activateIgnoringOtherApps(_:), I want to prevent it from activating when the user clicks on its window, just like the Edit/Emojis & Symbols applet.

I see Monkeybread has NSApplicationMBS.deactivate but it also says

So is there anything in AppKit one can call for the same result ?

Merci Jean-Paul, this works perfectly :slight_smile: