Dismiss keyboard on touch outside it

I find that the keyboard bounces straight back up for some reason.