Ubuntu 18.04 Doesn't actually change the language for input
It is probably a bug from GNOME, I don't know, but restarting GNOME works. (You won't lose your open apps or the arrangement in virtual desktops.)
Press Alt+F2 and then write r
and then press Enter.
you should restart I had the same exact problem and after a restart, it worked