fixes #43: support keys without a command attribute by search for menuitems with the same key id