Sounds like you need to implement a custom Tool: http://www.sketchup.com/intl/en/developer/docs/ourdoc/tool
You can make the tool select entities the user clicks on by using the PickHelper class.
Both these classes has examples in the documentation that will get you started.