# How To Make V-key Toggle Between Vertex Paint And Object Mode?

I am trying to set up V-Key as shortcut. But it is ignored in Vertex Paint Mode.

In Object Mode, I hover over Vertex Paint, right-click and add shortcut. Great! I hit V-key, switches to Vertex Paint mode.

Now I hover over Object Mode, right-click and add shortcut. Since I am trying to toggle states, I use same: V-Key

But, it does not switch back to Object Mode.

It seems that shortcuts are global, not bound to current view state.

So, can I make V-key a toggle between view modes?

• Set object.mode_set