How to add keybinding to toggle cursor tab?

I saw this post which discusses how to add keybindings to enable or disable Cursor Tab. However I would’ve assumed I could have a key which disables it if it enabled, or enables it if it is disabled.

I don’t know where to find a “when expression” which changes this functionality, and it appears that “Inspect Context Keys” is broken/disabled.

Would that work ?

EDIT: Oops I just saw you are asking for the When column above.

Would be great to have a command called Toggle Cursor Tab that does the toggle. I looked into adding it myself but I can’t find the source code, I take it Cursor isn’t open source?