Hi andy_smith17
Welcome to the Apple (user-to-user) Community.
Re: MacBook Air 2020 M1 keyboard stopped working: any ideas ?
You could try restarting your Mac, (Apple Menu > Restart):
eg: will often clear difficulties, and restore order.
Else:
What to do: If your Mac doesn’t respond to key presses – Apple Support
Eg: says:
"Make sure Slow Keys is turned off. If Slow Keys is on, you must press and hold a key longer than usual before it’s recognised". and "Make sure Mouse Keys is off".
or
You may want to check whether another setting has been accidentally triggered.
Change Keyboard settings for accessibility on Mac – Apple Support
If nothing has helped:
Wondering which MacOS version is installed, and if an update would help,
What's new in the updates for macOS Ventura - Apple Support says 13.2.1 is latest.
All the best :-)