Question

Using Key strokes for automations
What is the best approach to design automation in a solution so that it can behave correct for mouse clicks versus keyboard shortcuts.If I want start the same automation for a button click event(mouse click or pressing enter key) and also for keyboard shortcuts, what is the best way to design the automation?