Add touch gesture to dismiss keyboard