How do you implement clickable interface through code?

What exactly are you trying to interface with? Are you talking about interacting with objects in the world or are you referring to UI?