Save user key bindings to the right place. Fixes #3773.