handle_keys spec