A misleading setting (language, Slow Keys)
Characters that don’t match? The layout (AZERTY/QWERTY) may have changed. Keys that “don’t register”? The accessibility options (Slow Keys, Sticky Keys) may be active. Plugging in an external keyboard that works isolates the problem.
Test: a USB/Bluetooth keyboard that works points to the internal keyboard or a setting.