Keymap: shortcut without going through the menus?

Hello,

I can set up a “wm.call_menu” in the Keymaps, then put the value at “VIEW3D_MT_pivot_pie”, to make the pivot choice menu appear.

However, I’d like to be able to change the pivot without using the menu: like pressing Up Arrow to make it 3D Cursor, and down arrow to be Median Point. Directly, without going through the menu.

Is it with something like a “wm.context_menu_enum (it was that in 2.79)”? Or a toggle?

Thank you