Fixed clicking objects

The mouse will only click the object if the menu contains one of the
object's actions. This ensures that the mouse does not misclick.