Hi Sakamotos,
To capture keys you can use the CaptureKey() function which is part of RWindowGroup. However, we recommend against capturing this button as the user expects this to minimize the application.
Can you tell me the reason why you like to minimize yourself? Is there a problem using the OnMinimize callback of the EDGELIB framework?