Parse command from pyxhook format to mapped string