Record the last IP address when a key is used.