Revert "make keystroke entry robust"

This reverts commit 1c52c8dd608e58fe37fd938b30d9fafb77f511ef.
fix page focus problem