I just installed gdm to check is this problem kdm related or not. I realized gdm is not affected. So I think this behaviour is kdm related. -- (kdm) wrong keyboard behavior at first login https://launchpad.net/bugs/63615