VMware is a chaos. Ubuntu is a chaos. Both make a bigger chaos.
And when chaos happens, the keyboard does not work.
But I have found a simple solution (in this post).
$ setxkbmap $ echo "xkeymap.nokeycodeMap = true" >> ~/.vmware/config