How to mouse click

Feel free to comment on how amateur I am for asking this but how do you click directly on an object in bge? For instance, how can I get my player to left mouse lick on a door mesh to have it open or have the player click on a lamp to get information from it or have it turn on within a reasonable distance?

like this: