a and c keys not working on macbook, even on an external keyboard
You can start by rebooting into safe mode as a troubleshooting step. Restart and hold down the shift key, when booted into safe mode you can test the keys:

Delete the preference file which can be found here  /Library/Preferences/com.apple.keyboardtype.plist

Restart normally