How to add notes from Virtual Keyboard

I am able to access the virtual keyboard and have added an instrument track. How do I record what I am playing and add it to the track. Thanks