Hello oldmoi,
We understand you're not able to type the word analysis on your MacBook Pro M2. We'd like to help.
Let's check your keyboard settings and ensure something didn't get turned on or off that would prevent you from typing that word.
Go the Apple menu, then System Settings, then click Keyboard in the sidebar. (You may need to scroll down.) Click the Edit button next to Input Sources on the right, then turn on Show Input menu in menu bar.
Open the Input menu, then make sure the correct keyboard layout is selected.
Apple Menu > System Settings > Keyboard > Keyboard Shortcuts > Input Sources.
We can also reset the keyboard if the steps above don't correct the issue.
Apple Menu > System Settings > Keyboard > Keyboard shortcuts > Modifier Keys > Reset to Default.
Let us know if you have any questions.
Thank you for using Apple Support Communities.
Take care!