Add history recording to quick_add_keys_to_file and a test for it

Closes #85