How to use a keyboard shortcut to toggle a html.Component

How can I toggle a html.component in my App via a keyboard shortcut?

I tried using accessKey, but it does not trigger the callback function using the Input: Input(self.toggle_surrounding_circle_id, ‘accessKey’)

This is my component (maybe the string ‘b’ in the accessKey is wrong?)

html.Div(
  id=self.toggle_surrounding_circle_id,
  className='bi bi-toggle-on select-parent',
  n_clicks=0,
  style={'padding-left': '0.15rem'},
  accessKey='b'
)

Any suggestions on how to achieve this?

Thank you in advance,
Ivo