Trigger Hardware Keyboard Minimize Button

I am trying to have a function which is being triggered when the keyboard-minimize button is triggered in Android


I already tried registerBackButtonAction but it is also triggered when this button is shown:


So if there is a good solution (it doesn´t even have to be good, it just should be working), pls let me know.