If you're on xorg you could just configure pointerkeys https://wiki.gentoo.org/wiki/Xorg/Using_the_numeric_keyboard...
...you just need to map keys. It was very easy, so now fn-arrow and fn-return work as a mouse on anything I've attached it to so far. I got an rpi recently, only connected this, and was able to navigate the startup ui with no mouse.
the advantage with this is that it's cross platform.
Using the keyboard to drive the mouse isn't a nice experience. -- But, it's nice to have in situations like "I use a bluetooth mouse, on desktop, and bluetooth isn't set up/working". I've found that useful for live ISOs.
https://support.microsoft.com/en-us/windows/use-mouse-keys-t...