This just happened to me again on Plasma 6.4.5 keyboard stopped responding after auto lock, mouse brought up password box but couldn't enter password and clicking mouse did nothing. Tried unplugging keyboard and mouse but no different even plugged a second keyboard in to a different USB port and still no response. Multimedia controls on keyboard were working on playing media.
I notice when this happens the text about scanning fingerprint does not display so maybe connected to that. As it so near sync will see if Plasma 6.5.2 is any better.