I had forgotten my admin password on my iMac so I reset it by using resetpassword in recovery mode. All things went well until I tried to reconnect to iCloud. When I go to System settings - iCloud I'm asked to enter my Apple-ID password. I enter my password and then a new window pops up "MAC OS-X wants to use the key 'Log in', enter password". But I cannot enter a password, because every letter I type is entered in the previous window! Even when I click with the mouse on the 'keychain'-window, every letter appears in the previous window. How can I solve this?