Note duration assign to midikeyboard

How can I assign the note duration to some keys of my Midi keyboard?
like C equals a quarter and D an eight note and so on. So I could leave my hands on the midi keyboard while entering stepwise notes, instead of switching between the Computer keyboard and the midi keyboard.

Welcome to the Forum @Heinz_Krapf ,

In the Key Commands section of the preferences, search for set Note Input>Set Note Duration, there you can use the MIDI Learn Option to Add MIDI Commands.

Thank you, that works fine