I had a similar issue on KDE Plasma a few days ago and I think it was because of a piece of software that somehow invited itself on my system (fcitx5). I removed it and it was fine after that. AFAIK it’s not something that is essential anyway, my system is working just fine without it.