This happens to me about half of the time I open my laptop. It takes as long as a minute for the keyboard to start working. I Havn’t found a solution to it and just suffer.
I have the same issue on my HP laptop but I just got used to it, it’s not a problem for me considering how much better pop os works than other distros.