Setting or preference to not record or delete short notes

The challenge I face is often when recording fast tempo organ or piano occasionally incorrect keys are brushed between chords by mistake, does anyone know if there is a midi command to either ignore these or to select all and delete?

Also is there a randomise feature that applys an automation to make programmed midi sound more human? I’m thinking velocity, length, timing etc

Hi,

You can make your own MIDI Logical Editor Preset to delete Notes shorter then X.