Sometimes ignores keystrokes. Here’s what I did:

sudo apt purge ibus
sudo apt install fcitx   [If not installed]
sudo dpkg-reconfigure fcitx
sudo reboot