Trackpad and keyboard problems
This sounds like you may have the settings on for Mouse Buttons, which allow the arrow keys to navigate the mouse. I believe this is under Accessibility or maybe Keyboard or Mouse/Trackpad, depending on the MacOS version.

https://support.apple.com/en-us/HT204434#mousekeys