I recently installed ubundu 22.04 ,after i reboot the system my keybord was not working and by surfing on internet i found out about these commands and after using these commands on terminal my keyboard start working again but on the third day it got back to starting stage (not working) ie, after multiple booting either i have done something wrong or these linux command are temporary solution for input drivers.
sudo apt install xserver-xorg-input-all
sudo apt install xserver-xorg-input-libinput
sudo apt install xserver-xorg-input-wacom