This post shows a way to fix a keyboard not working in Ubuntu.
Fix
Press: Ctrl + Alt + F3
Type: ubuntu
Type: /etc/init.d/gdm3 restart
The GUI should come back up, and the keyboard should work.
Specifics
Press F12 while turning on a ThinkPad ( Specific T460 ThinkPad: https://www.zachpfeffer.com/single-post/2017/01/28/new-t460-system-information )
Boot Ubuntu 22.10 on the ThinkPad from a USB stick ( Install instructions: https://www.zachpfeffer.com/single-post/install-ubuntu-1604-on-a-usb-stick-from-windows )
Run "Try Ubuntu"
Notice the keyboard not working
Notes
This doesn't occur every time.
Reference