A universal click function with mouse and touch support.