I have a virtual machine with OS X on a Windows PC. Is there a utility software to install on OS X that will simulate the PC keyboard layout, especially for typing
First thing, make sure you're using a correct keyboard layout. Unless you know what you're doing, and actually use languages other than English, select "U.S. English" and not International PC or similar.
Secondly, I suggest Karabiner. It has million of different tweaks and adjustments that you can enable to customize your keyboard, some of them make a life with PC keyboard on a Mac bearable.
I found this tool that lets you create custom keyboard layouts for MAC OS X , it worked fine for me