やってないから動くかわかんないけど、普通に考えるなら

If( GetKeyState("RButton", "P") or GetKeyState("MButton", "P") or GetKeyState("XButton", "P") )
msgbox Hit

とか