Rotate current part hotkey

I’m familiar from other programs selecting an item then pressing the “r” key to rotate the currently selected item.

Acceptance criteria:
Left click on an item when, when item is selected press r. item should rotate (identically as if the rotate button was pushed once)

Left click and drag an item, when item is being moved (dragged), press r. item should rotate (identically as if the rotate button was pushed once)

Thanks,