Bug 1025520 - Move touch event handling away from keyboard.js +shepherd

I think this should be dx >= limit || dx <= -limit...
if we don't want to change the criteria from the original code.