Chromakey with shadertoy example

I’m try to addapt the shadertoy chromakey example to p5 with webcam as video source.
After many time reading documentations of shaders my code seems not working. I need some help

ShaderToy Chroma Key

My test