Minimizing I don't think is provided by a keycode. The code I ported had the full screen function in it; just mapped to another button. , good luck with this