Apple keyboards have a bug right now where it will just fuck up whatever you are writing. So no, you aren’t going insane and you did just type what you thought you typed, the keyboard was just being dumb. I thought I had a brain tumor or something 😭😭