It looks like you created a shell initialization file with a bunch of gibberish in it (from the keys, it looks like you were trying to type editing commands, and they got inserted as text). The file will be an invisible file in your home folder, with one of the following names: .bash_profile, .bash_login, .profile, or .bashrc. You can list invisible files in your home folder with the command ls -A ~
Fixing the file may be tricky, since there may be things in it that you need to keep as well as gibberish that needs to be deleted. And if you're having trouble editing files, that's just going to add to the confusion...