Can't type password after waking up laptop (MSI)

Hi, I have been using Fedora for the past 6 months (after Ubuntu, Manjaro and OpenSuse) and I really love it. I have however one little annoying bug. From time to time, when I wake up my laptop (MSI Prestige 16Evo A13M) from sleep, I cannot type my password (neither on the laptop keyboard or on the bluetooth keyboard), some keys seems to work like Caps Lock but not the letters or the numbers). Has anyone encountered that bug? Were you able to fix it? (I end up powering off the computer and restarting it for it to work again). I’m on the latest version. Thanks a lot.