Some keys are not working on new Macbook with touch bar
simply, switch to guest account,go to system preferences..see image attached.
Then switch back to user account and login using virtual  keyboard. I do it everytime.