As xkb was not working, I parallely tried installing fcitx. I installed the following packages: fcitx, fcitx-gtk3, fcitx-qt5, kcm-fcitx and all the dependencies that came with it. An icon used for <short cuts> in System settings > Workspace was placed in the panel. Was able to specify the languages too. But when I try to invoke it and type, it says, No Input Window. What might be the reason? Please look into it.