Did you manage to figure out a solution? I'm having the same issue or a similar one at least, keyboard works fine when the charger isnt in while booting.
From that point on it seems to work but kind of a hassle to have to go around that every time.
It also tries to install a software update...