I faced the same issue with Asus Vivobook s 15 and compiled kernel 5.19.5 with patch provided here https://bugzilla.kernel.org/show_bug.cgi?id=216158 and it worked for me too.
I've uploaded the same to https://drive.google.com/drive/folders/1_29NPWOjJ_RGy9Oh-SnSdgEPBBVfEJHt?usp=sharing and you can download all 4 deb files and install them and boot to kernel '5.19.5 #1 SMP PREEMPT_DYNAMIC Mon Aug 29 16:57:23 IST 2022 x86_64 x86_64 x86_64 GNU/Linux' and it should work for you too.
In case you want to build your kernel, let me show the straightforward steps.
Install mainline package sudo apt install -y mainline
and install tools for compiling
sudo apt install -y build-essential libssl-dev libncurses5-dev gcc bc bison flex libelf-dev
search for the mainline app and install the kernel you want to build as it will give the correct kernel config when we will build the kernel. Reboot the laptop to boot into this kernel.
Eg. you have installed 5.19.5 then go to kernel.org and download the same version(it's better to match the versions)
Create a new dir and move the kernel tar there. eg.
mkdir mykernel
and
cd mykernel
and place the linux-x.xx.x here.
mkdir linux_kernel
tar xvf linux-* -C linux_kernel/ --strip-components=1
cd linux_kernel
cp /boot/config-$(uname -r) ./.config
patch the kernel for the against using below
https://bugzilla.kernel.org/attachment.cgi?id=301690
the issue below command to patch the src.
patch -p1 < ~/Downloads/fix-irq-vivobook.patch
sudo make deb-pkg
You might face issues for Debian certs. To fix that do below.
sudo apt install -y linux-source
and copy the certs from
cp -v /usr/src/linux-source-5.15.0/debian/*.pem debian/
Again start the build process.
sudo make deb-pkg
this may take 1 to 2 hours so please wait.
If all is well then you'll get the kernel build in parent dir.
cd ..
sudo dpkg -i *deb
Verify grub config and reboot and you'll get a working keyboard.
Clean up: open mainline > remove the version you installed in step 2.
Comment here if you face any issues and I'll try to help. :)
Indeed I'm typing for Vivobook's Keyboard only. All thanks to the amazing Linux community. :)