Midi record (halion groove)

Hello everyone

When I press a key and release it, then press the same key again during recording in Cubase, the instrument continues playing from where it left off instead of restarting from the beginning. But when I’m not recording, it restarts from the beginning every time I press the key. How do I make it retrigger from the start during recording as well?"