I'm not sure, but I think you can get at these using keyboard input stuff. You'll notice in keycodes.bmx that the first three entries are mouse 'keys'. Scroll down a bit, and there are a few intriguing 'back' and 'forward' keys. Without trying (or for that matter a >3 button mouse to try it with), no idea if that's any help!