Keyboard shortcuts to switch between modeBarButtons

I have a go.Candlestick chart where at the top right I have clickable buttons to zoom (default) and to draw lines (that I have added with “fig.show(config={‘modeBarButtonsToAdd’:[‘drawline’]})”).

Is there a way to configure keyboard shortcuts to quickly switch between e.g. the mode zoom and the mode drawline? Right now I have to click on the corresponding button each time I want to swtich mode, but would prefer a keyboard shortcut instead.

Thanks