debug for the right key sym and value, thank @ggice