Although the keyboard works correctly with a local X server, it might not work correctly when you run the same virtual machine with a remote X server.
For local X servers, Workstation Pro maps X key codes to PC scan codes to correctly identify a key. Because it cannot tell whether a remote X server is running on a PC or on some other kind of computer, Workstation Pro uses this key code map only for local X servers. You can set a property to tell Workstation Pro to use key code mapping. See Understanding X-Key Codes and Keysyms for more information.
To configure a keyboard mapping for a remote X server, you add the appropriate property to the virtual machine configuration (.vmx) file or to ~/.vmware/config.
Prerequisites
Verify that the remote X server is an XFree86 server running on a PC.
Power off the virtual machine and exit Workstation Pro.
If the keyboard does not work correctly on an XFree86 server running locally, report the problem to VMware technical support.