Update registry key