Custom Keyboard Setting for toggle visibility

Is there a way of changing or adding a custom keyboard Setting for toggle visibility of an object.

Pan and Toggle visible both seem to use space. Which is a very annoying way of accidently hiding loads of objects in the map.

There doesn’t seem to be a way of changing these in preferences.