I guess you mean “mouse pointer”, not “cursor”? If so, there’s Mouse Keys (https://support.apple.com/en-gb/guide/mac-help/mh27469/mac), but that means giving up easy access to essential keyboard keys, especially on laptops. If you have a numerical keypad, that may not be that bad, but that’s for you to judge.
You can also use a camera and control the mouse pointer with your head (https://support.apple.com/en-gb/guide/mac-help/mchlb2d4782b/...). I don’t know how well that works.