Hi and welcome,
I’m not sure, if I understand your problem correctly. Please, double-check the Grid settings. To me it seems, you want to insert the note out of the Grid, but Cubase snaps it to the Grid. Am I right? If this is the case, you can either change the Grid settings, or you can disable Snap (in the Toolbar).