VMware arrow keys problem on Ubuntu

After power up my vmware virtual machines on the Ubuntu I have had a problems using arrow keys when my mouse pointer was captured by the console. Could not move at all and I had to use a Num pad on my keyboard to move around which was really annoying since I could not type a numbers because I had to keep my Num Lock OFF. The solution to this problem is simple:
echo ‘xkeymap.nokeycodeMap = true’ >> ~/.vmware/config