fix keyboard response issues