Out Of tempo recorded MIDI NOTES, PLS HELP

im new to CUBASE. and i have a problem.

if i connect my MIDI controler and add a Virtual instrument, like a virtual piano and start playing, it sounds good. but when i record it, and i play the recorded track the notes sounds quite different some sound slower and other sound faster than played. PLS help

Hi and welcome to the forum,

Do you have the Auto Quantize (orange AQ button in the Transport Panel) enabled by mistake?