With capturing the mouse position, I think it makes sense to send an object that has consistent keys, e.g.:

    {
        "action": ["mouseMotion", "keyDown", "keyUp"],
        "value": 55,
        "label": "key mapping label."
    }

This way, we can easily check the "action" key for what is actually happening. In its current state, we don't have that capability easily.