Why does my code make Input.anyKeyDown not work?

I’ve got some code in Update() that among other things tells a gameObject to move if you click the mouse on a “starting” block. However, if you’re just dragging the mouse around, I change the position of the gameObject, based on what starting block the mouse is hovering over and that code is controlled by a state var. So when you finally click the mouse, the state changes so I quit looking for a starting position and just tell the object to move…the problem is that if i have the code for the position setting commented in, anyKeyDown never has a true value…if I comment out the positioning code, I’ll get anyKeyDown values the frame it goes true…any ideas?

Thanks

nevermind…it’s a failing in the mask for ray cast for some reason…my position code is working because some frames the raycast hits my starting tile and not my gameobject i’m dragging around…the “launch” code never sees the raycast hit my tile as it’s hitting the gameobject even though I’ve set the layermask explicitly to my tile layer

and again…not even a failing of the mask…failing of the programmer…the function definition is cast(ray,out,dist,mask) where mask is defaulted if you dont supply it…i errored and called it cast(ray,out,mask).