VMWare Workstation turn off caps notifications

Notifications about Caps Lock on/off or Num lock on/off can be very annoying.
To disable them:

  1. Stop (or suspend) virtual machine
  2. Find the vmx file and add the following line:
    mks.keyboard.setHostLEDs = "FALSE"
  3. Start (or resume) VM