dismisses keyboard correctly