Fx=-dU/dx, Fy=-dU/dy

for gravitation potential U=mgy
so Fy=-dU/dy= -d(mgy)/dy=-mg
It is a constant , always point down.
U is maximum, does not imply dU/dy is also zero.