made hideKeyboard more robust

Robustified hideKeyboard code.  Works with existing tests but will be adding new functional tests for swipe fallback.
I think this should be:

`$.debug("Hiding keyboard using swipe");`

I'm also not sure why we're still using tap by default in the switch statement.