MIDI keyboard delay

I’m having issues with my MIDI keyboard. Real time midi recording is the best way to compose, but unfortunately the keys that I play come to Hookpad a bit later, so when I play to the metronome, its getting all messed up.
This was the main reason I bought the premium version and it is not working.
Could anyone help me deal with this issue please?

Thank you,

Hi Pavel,

I’m sorry to hear that. How big is the latency? Is it like a sixteenth note or even higher?