MIDI Notes Recording Early in Cubase. How Can I Fix This?

Hi!
I’m having a problem in Cubase; as shown in the video, after hitting record and trying to play right on the beat,

the notes are being recorded early.
How can I fix this?
I’ve already tested cables and the controller, reset Cubase, and installed previous versions.
I didn’t have this problem a while back.
Can anyone help me?

Hi,
what do you see if you open the MIDI Monitor ?
Also, have you checked your quantize settings in the project and on your MIDI track?