Sensor for finger movement

Hello,

I'd like to track movements of one finger. The measurement should be quite accurately, as I want to use this device for drawing shapes/selecting colors.

I want to register movement of X and Y axis.

What sensor would work for this?

Thanks a lot for your help.

What sensor would work for this?

The human eye ?