See for example Kixforms: Which mouse button was clicked? . There's also been a script that demonstrated a true context-menu system, just can't find it right now as I don't remember what the name was.
_________________________
There are two types of vessels, submarines and targets.