Systemd-boot don't detect keyboard

I am dual-booting NixOS with Windows on my laptop and have been using the default systemd-boot. However, I’ve encountered an issue where systemd-boot does not recognize my integrated laptop keyboard. Specifically, pressing the arrow keys does nothing, and pressing Enter does not boot the selected entry. The boot sequence proceeds normally after the timeout, booting the default entry without any issues. To work around this, I switched to GRUB, which worked perfectly with no keyboard issues. However, after a fresh reinstallation of NixOS using the ISO and live installer, I encountered the same problem with systemd-boot on reboot. I initially suspected the BIOS, but it is up to date.

Here are some additional details that might help diagnose the issue:

I use a lenovo legion laptop

The problem persists even when using an external keyboard.

The keyboard works fine when I first enter the BIOS before booting, suggesting an initialization error with systemd-boot.

Here is the output of $ bootctl --version:
systemd 255 (255.6)
+PAM +AUDIT -SELINUX +APPARMOR +IMA +SMACK +SECCOMP +GCRYPT -GNUTLS +OPENSSL +ACL +BLKID +CURL +ELFUTILS +FIDO2 +IDN2 -IDN +IPTC +KMOD +LIBCRYPTSETUP +LIBFDISK +PCRE2 +PWQUALITY +P11KIT +QRENCODE +TPM2 +BZIP2 +LZ4 +XZ +ZLIB +ZSTD +BPF_FRAMEWORK -XKBCOMMON +UTMP -SYSVINIT default-hierarchy=unified

Thanks in advance for your help !