Hello kt misener,
Thanks for reaching out to Apple Support Communities. We see you have some questions about your Magic Keyboard not working as expected, and we'd like to help. While the following article has to do with not being able to connect, we'd recommend going through it to see if any of the steps help with what you're seeing: If you can't connect your Magic Keyboard, Magic Mouse, or Magic Trackpad to your Mac - Apple Support
Mainly, disconnecting and reconnecting the keyboard, to see if that helps.
If this doesn't help, let us know if this is happening with more than one application, and we'll go from there.
Regards.