How do you create custom editor keybindings?

Hello!

I would like some guidance on how you would set up custom keybindings for the editor, if that is possible.

What i want to do is detect when i press the custom keybinding while hovering the mouse over the editor viewport, and from that key press event i want to do a line trace from the mouse screen position into the world to see which actor is being hovered and do something with that actor.

I’m fine with it being in code.

Thanks!