Hi,
I am working with STM32F107. want to know how to enable USB HID using keil.
So why have you said that your Toolset/MCU Architecture/Product is C166?!
"how to enable USB HID using keil"
First, you need to select the correct toolset!
Then you just do what the Chip documentation tells you - the chip neither knows nor cares what tools you use!