How can I toggle the KDE Plasma panel’s visibility using a keyboard shortcut?

Hi, I’m wondering how I can hide the KDE Plasma panel using a keyboard shortcut.
I’ve looked through System Settings → Shortcuts, but I don’t see any option related to toggling the panel visibility.

Is this possible to do in Plasma 6, or is there a script/command I can bind manually?

Thanks!

Set it to auto-hide or dodge windows then configure a focus shortcut in the panel settings:

hidePanel

If you want to fully hide it so it doesn’t reappear when the cursor touches the edge of the screen see this instead: Show/hide main panel with a hotkey - #14 by luisbocanegra