Cmd+d on MacOS duplicates the current line. Is that what you want?
You can achieve anything with macros and you can give shortcuts to a named macros.
Macros are in the Edit > Macros menu. Add a shortcut to a macro in Settings , Keymap > search Macros, right click on Play Saved Macro and Add Keyboard Shortcut.