Changing passwords

How can I do it? I set my password to my beta key by accident and this means that I cannot play it as I have lost said key.