You can override the flagsChanged() method of NSViewController and have your code like below to detect fn key press and release in macOS:
I always wanted to have a nice music system in my house since I was a kid. However, I now finally got the chance to build my own HiFi audio system. After some research and listening to different speakers at my local HiFi stores, I shortlisted the following speakers based on my budget: