These two show up constantly in chat, forums, and multiplayer games.
OMG stands for "Oh My God," an exclamation of surprise, excitement, or disbelief.
AFK stands for "Away From Keyboard," which tells your teammates you have stepped away and are not playing for a moment. In online games it is considered polite to say it, since going AFK mid-match can cost your team.
Plenty of similar shorthand exists, such as BRB ("be right back"), GG ("good game"), and IDK ("I don't know"). Once you know a handful, chat logs get much easier to read.