How to record MIDI output of VSTi/instrument tracks Instrument built in Keyboard?

how do I record the MIDI of a vsti just buy clicking on its build in keyboard?

I think this is not possible.

Hi,

I can confirm, this is not possible.