Laptop keyboard doesn't work for about 20 seconds after boot or wake up

I have backstabbed windows on an HP laptop via EndeavourOS. When I boot from shutdown, reboot directly from a command, or wake up my laptop from sleeping, the keyboard doesn’t work.

The keyboard works fine in the boot menu before booting into EOS. I have had some fun debugging the OS and setting up personalizations, but I don’t know where to start with this issue. My hardware information is as follows:

Kernel: 6.6.4-arch1-1 arch: x86_64 bits: 64 Desktop: i3 v: 4.23
Distro: EndeavourOS
Type: Laptop System: HP product: HP Laptop 15-dy2xxx v: N/A
Mobo: HP model: 87FE v: 57.26 serial: UEFI: AMI
v: F.32 date: 07/04/2023
ID-1: BAT0 charge: 11.8 Wh (30.2%) condition: 39.1/41.0 Wh (95.2%)
volts: 10.9 min: 11.3
Info: quad core model: 11th Gen Intel Core i3-1125G4 bits: 64 type: MT MCP
cache: L2: 5 MiB
Speed (MHz): avg: 489 min/max: 400/3700 cores: 1: 400 2: 400 3: 400 4: 400
5: 400 6: 400 7: 1116 8: 400
Device-1: Intel Tiger Lake-LP GT2 [UHD Graphics G4] driver: i915 v: kernel
Device-2: Quanta HP TrueVision HD Camera driver: uvcvideo type: USB
Display: x11 server: X.Org v: 21.1.9 driver: X: loaded: modesetting
dri: iris gpu: i915 resolution: 1920x1080~60Hz
API: EGL v: 1.5 drivers: iris,swrast platforms: x11,surfaceless,device
API: OpenGL v: 4.6 compat-v: 4.5 vendor: intel mesa v: 23.2.1-arch1.2
renderer: Mesa Intel UHD Graphics (TGL GT2)
Device-1: Intel Tiger Lake-LP Smart Sound Audio
driver: sof-audio-pci-intel-tgl
API: ALSA v: k6.6.4-arch1-1 status: kernel-api
Server-1: PipeWire v: 1.0.0 status: active
Device-1: Realtek RTL8822CE 802.11ac PCIe Wireless Network Adapter
driver: rtw_8822ce
IF: wlan0 state: up mac: 10:68:38:49:62:d3
Device-1: Realtek Bluetooth Radio driver: btusb type: USB
Report: btmgmt ID: hci0 state: up address: 10:68:38:49:62:D2 bt-v: 5.1
Hardware-1: Intel Volume Management Device NVMe RAID Controller driver: vmd
Local Storage: total: 238.47 GiB used: 11.89 GiB (5.0%)
ID-1: /dev/nvme0n1 vendor: Western Digital model: WD PC SN740
SDDPNQD-256G-1006 size: 238.47 GiB
ID-1: / size: 228.69 GiB used: 11.81 GiB (5.2%) fs: btrfs
dev: /dev/nvme0n1p2
ID-2: /home size: 228.69 GiB used: 11.81 GiB (5.2%) fs: btrfs
dev: /dev/nvme0n1p2
ID-3: /var/log size: 228.69 GiB used: 11.81 GiB (5.2%) fs: btrfs
dev: /dev/nvme0n1p2
ID-1: swap-1 type: partition size: 8.8 GiB used: 0 KiB (0.0%)
dev: /dev/nvme0n1p3
System Temperatures: cpu: 46.0 C mobo: N/A
Fan Speeds (rpm): cpu: 0 fan-2: 0
Processes: 244 Uptime: 14h 21m Memory: total: 8 GiB note: est.
available: 7.41 GiB used: 2.24 GiB (30.2%) Shell: Bash inxi: 3.3.31