Hamas keeps fighting spirit up because it's (1) fun to shoot at kill Israelis, (2) religion motivates them and (3) they know that Israel fights fair, more than fair, with warnings and such, and that restricts them from leveling Gaza like they would do in a full-fledged declared war.