handle key service