You can ignore mouse events in a window/view by adding just a single line of code.
window.ignoresMouseEvents = true
Or,
view.ignoresMouseEvents = true
If this article was helpful, others might be too
You can open your app’s window on top of all other open application windows with the below code:
You can quit or exit an app with:NSApp.terminate(self)
Delete key press detection is slightly different than other keys. It uses NSDeleteCharacter like below: