Trackpad and keyboard problems My keyboard is working oddly. The right side shift does not work, but the left side shift command button will. The trackpad will click, but it stopped working to move the cursor around.

The trackpad works perfectly if I start up computer using Command-D, so for the 2 minutes it takes for the diagnostic test to complete I can move the cursor using the track pad, so it is not the hardware. Today I did not have my mouse near my computer to be able to choose my user at startup so I just pressed the arrow key on the keyboard and it moved my cursor over to my user icon for me to sign in.

This shows me that something is telling my computer to listen to the keyboard and not the trackpad. It is not the setting in Accessibility that says ignore built in trackpad when mouse or wireless trackpad is present - that is unchecked. This is something going on with keyboard settings. Can I use terminal to set default settings?

MacBook Pro Retina 13 inch mid 2014 - Mojave
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