Can't click on a moving GameObject

I’m not having any issues moving the GameObject. The issue is that when i try clicking on it with OnMouseDown or OnMouseUp nothing happens. I tried using a simple debug statement to see if anything happened and it didn’t go off. I know i’m hitting the collider because the stationary GameObject behind it (which does work) didn’t give me it’s debug statement so i must be hitting the collider but its not running the function.

void OnMouseDown(){

void Update(){
     transform.position = Vector3.Lerp(startpos,finishpos,t);

Debug.Log("Poke");, not Debug.log("Poke");