To reproduce, try to charge your laptop via usb-c, and then connect keyboard (or maybe anything else) to the same usb-c port. In my case keyboard does not reacting at all.
The port I use is near HDMI port.
May be related #411
OS: Fedora Linux Asahi Remix 42 (Forty Two [Adams]) aarch64
Host: Apple MacBook Pro (14-inch, M1 Pro, 2021)
Kernel: Linux 6.16.8-400.asahi.fc42.aarch64+16k
CPU: Apple M1 Pro (8) @ 3.04 GHz
GPU: Apple M1 Pro (16) @ 1.30 GHz [Integrated]
Memory: 10.45 GiB / 15.22 GiB (69%)
Disk (/): 196.44 GiB / 326.23 GiB (60%) - btrfs