How to hold both value and key CheckBoxGroup form element

Currently I am using checkboxGroup form element, where I am map the values easily using query collection. Further after selecting the values through checkboxGroup, these values are need to save with KEYs. how to hold KEY and Values in checkboxGroup form. Please help