I've had problems with my keyboard bugging out before, but I did a fresh reinstall of zorin a while back and now my problems are different, but similar. Here are some behaviors I've noticed:
Bluetooth automatically gets enabled on boot. However, my keyboard has to be off and then turned on after boot in order to work. If, for example, my keyboard was already on before my laptop/bluetooth turned on, it wouldn't work.
Keyboard stops working when it goes into timeout/sleep mode. If I press a key to "wake it up", the keyboard's light indicator blinks to signify that it did "wake up", but it still doesn't work. When this happens, I have tried the following:
Turning the keyboard off, then on again. Leads to "failed to reconnect: input/output error" on blueman.
Turning bluetooth and keyboard off, then turning bluetooth on, then turning keyboard on. Like recreating what I know works during boot. This usually works. However,
I've noticed recently that if I leave my laptop idle, as in both bluetooth and keyboard are on for a long time, the fix in #4 doesn't work. I get the "failed to reconnect: resource not ready" error. In this case I'm forced to reboot the whole thing once or twice to fix it.
My keyboard is this offbrand, mini folding thing I bought online with a built-in touch pad. I don't think that's an issue though, because it worked perfectly on this laptop when I was on Windows 11.
Linux kal-VivoBook 5.15.0-67-generic #74~20.04.1-Ubuntu SMP Wed Feb 22 14:52:34 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
sudo lshw -C network
description: Wireless interface
product: RTL8821CE 802.11ac PCIe Wireless Network Adapter
vendor: Realtek Semiconductor Co., Ltd.
physical id: 0
bus info: pci@0000:01:00.0
logical name: wlp1s0
width: 64 bits
capabilities: pm msi pciexpress bus_master cap_list ethernet physical wireless
configuration: broadcast=yes driver=rtw_8821ce driverversion=5.15.0-67-generic firmware=N/A ip=192.168.254.110 latency=0 link=yes multicast=yes wireless=IEEE 802.11
resources: irq:73 ioport:f000(size=256) memory:fea00000-fea0ffff