made hideKeyboard more robust

Robustified hideKeyboard code.  Works with existing tests but will be adding new functional tests for swipe fallback.
:+1: for swipe strategy. I think tap should be removed entirely. That would leave us with two strategies: swipe or pressKey.