Fixes for saving option tables

* Blank fields in tables no longer dissappear and shift everything over.
* Keycode fields with no keyCode set now count as blank.