I just had an instance in a game where my QB was 5 yards out from the opposing endzone. He had some pressure, and so tried to throw the ball away—the ball went off in a wild direction, and ended up backwards in the end zone—it was called a safety.
http://cust21.myfootballnow.com/watch/900#158062