MacBook Pro login screen stuck keeps pressing a key into password field forever
The solution for me was from https://discussions.apple.com/thread/3450678

I turned off my bluetooth and it went away. There's definitely some issue with bluetooth and other devices.