Wiped my keyboard with a damp cloth and now my macbook pro 2017 keyboard cannot type on the login screen
For my issue it was due to a speck of dust that got stuck in the command key. This was the reason why it wouldn't type in the login box but in the terminal.