<setting id="input.libinputkeyboardlayout" default="true">us</setting>
If you are using a Swedish hardware keyboard, you need to set it in System->Input->Keyboard layouts
Have a careful read through this. You probably have a problem with credentials.