My keyboard and mouse won't work after starting the PC

In order to enter in commands, you may need to boot into recovery mode

From the Recovery Menu, arrow key down to Root - Drop to Prompt
tap enter
Then run in terminal:

sudo apt remove xserver-xorg-input-all

Once complete, reboot and test.