Keyboard shortcut for Enable Keyboard when using plugins

Is there any way fo assigning a keyboard shortcut to Enable Keyboard checkbox when using plugins?

When using for instance Omnisphere, and working with virtual keyboard only, I often have to turn this on and off when going back and forth searching the library and listening to sound by playing on the virtual keyboard. I know you can click outside of the plugin window in order to get the virtual keyboard to work, but it’s a bit tedious.

If this can’t be done it would also help if anyone knowns if this can be changed through the LUA scripting API?