Implementing `set-key!`.