Sometimes it takes over a minute for my MacBook Pro 16 inch to recognize anything I write on the keyboard and whatever I do with the trackpad upon waking it up from sleep mode. In fact, sometimes it will say it doesn't detect a keyboard and it expects me to insert or pair a keyboard. After a couple minutes the problem disappears, however.
I've done PRAM/NVRAM as well as SMC procedures. Still having the same problem. I've also booted in safe mode. No result.