Unable to use Eject button when Windows virtual machine is running.
This happens because the CD/DVD Drive is controlled by virtual machine. Unfortunately, there is no way to customize Eject button as a shortcut in Windows, etc.
Please use context menu (right-click on Disk in question > Eject)
In OS X: