Hello tobiasagricola,
Thank you for being part of the Apple Community!
It is my understanding you are experiencing a problem with the keyboard on your MacBook Air. I know how much we all rely on our computers and what an inconvenience this can be!
The first thing I would do is backup everything that is on the computer. Nothing I am going to suggest should cause any data loss, but it is always a good idea to have a backup. Your computer has software on it called Time Machine. It is fantastic software for backing up your computer. Information on how to use Time Machine is available here: Use Time Machine to back up or restore your Mac.
Once the backup is complete, the next thing to do is to reset the System Management Controller or SMC on the computer. Instructions on how to do this can be found here: Reset the System Management Controller (SMC) on your Mac
If the issue is continuing after the SMC reset, isolating what is causing the issue would be the next step. You do that by first starting the computer in safe mode.
Follow these steps to start up into safe mode.
- Start or restart your Mac.
- Immediately after you hear the startup sound, press and hold the Shift key.
- Release the Shift key when you see the Apple logo appear on the screen.
After the Apple logo appears, it might take longer than usual to reach the login screen or your desktop. This is because your Mac performs a directory check of your startup disk as part of safe mode.
To leave safe mode, restart your computer without pressing any keys during startup.
More information about safe mode can be found here: Try safe mode if your Mac doesn‘t finish starting up
If the issue does not occur in safe mode, that indicates that something that is starting when the computer is run in normal mode is causing the problem. In this scenario we want to disable login items and startup items. To do this:
- Click on the Apple Logo in the upper left corner
- Click on System Preferences
- Click on Users & Groups
- Select User in left column
- Click on Login Items.
- Remove items by highlighting them and clicking on " - " button near the bottom left of the Login Item window.
- Restart computer
Have a great day!