Thanks a lot for this. Do you know how to map the zoom key to mouse like scrolling, as opposed to a simple up/down? I tried getting the code from the mouse event, but it said keycode reserved.