The laptop keyboard works for everything except when the ubuntu 18.04 on the hard drive fully loads. It does not work for the user's password and it does not work for gnome. I tried installing xserver_xorg-input-all. I tried removing and installing xserver-xorg-input-all. I tried booting recovery, removing xserver-xorg-input-all, and installing it again.
In the bios the keyboard works. In grub the keyboard works. When I loaded ubuntu live from a usb drive the keyboard it works. But when I load ubuntu from the hard drive it does not work.