dpiponi, One of the weirder bugs I've experienced: you know how you're always being told to make sure caps lock is off when you enter your password? My Mac is currently enabling caps-lock at login and you can't disable it. It took a long time to deduce this was the problem but surprisingly I was able to log in after going round a few loops and realising an obvious trick...
A known problem with a venerable history: https://iboysoft.com/tips/macbook-stuck-on-caps-lock.html