Can blender addons distingwish tap a key and hold a key?

When blender had pie menus, many keys were used to popup a pie menu, it’s very useful, and I still like the old style that tap a key to toggle different mode. So if we want, can blender addon apis support we bind two functions to the same key? For example, tap to toggle mode, press and hold to popup a pie menu or something else.


click and click_drag can be used to bind two function to the same key.

I know that you can make double-tap, i use it in my addon to open the pie menu