avoid some invalid keybinding pattern, and save it back to config file

1. empty string
2. invalid key
3. remove keybinding