Add key commands to log.