toogle keydown and swiping