fixed a few bugs with the swipe keyboard