Logging terminal keys