Default [Q] Minimize Keyboard Button not recognized as Back Button

Pardon me if this isn't the right place for this, but please bear with me.

I've been working on this app, and I need it to do something when the soft keyboard goes down. So I tried to make a key listener to track when the keypress is the back button.But, it seems that the minimize button ( http://i.imgur.com/IQIGwCX.png ) is not being recognized as the back button. To verify that this was actually the cause, I made a onKeyPress override function and made it log the keypress event, and its event ID upon a key press. As suspected, it did not log anything when the minimize button was pressed. But it did successfully log when the back button was pressed ( http://i.imgur.com/3gUf7i3.png ).

So is this a bug or is there a separate key event ID for the minimize button? All suggestions are appreciated.