Chosen Solution

My USB keyboard (Razer Cynosa Chroma) registers AS when pressing A and QW when pressing W. I tried changing type and language but nothing works. Here’s an example of previous sentence wrote without correcting: I tried chasnginctype asnd lasnguasge but nothing qworks.

OK, that only leaves the battery as the cause! What can happen is the battery swells up pressing on the keyboard and its cable causing it to fail.

If we can let’s check your battery using this gem of an app CoconutBattery post a snapshot of the main window so we can see what it tells us Adding images to an existing question. If you can’t test the battery you’ll need to loosen it, carefully follow this guide MacBook Pro 13" Unibody Late 2011 Battery Replacement See if they allows your internal keyboard to work. Also look for any damage, post pics if you see anything.