How the hell do I beat Jayce?

Hey

I am very new to Gwen and recently faced a Jayce. I feel like there is very little I can do aside from super specific moments like when he freshly swaps to ranged, but against a decent jayce I soubt even that that is any useful

Am I just an idiot and there is some very clear way to beat him, or do I just lose unless I play super well?