Shortcut issue with non english ime

I have assigned a key (ex: ‘P’) to a command.
It does work in english ime, but not non english ime.
It seems not to process VK_PROCESSKEY.