Fixed stuck caret in Google Slides

Bracket the keypress event with keydown/keyup.

Fixes #115.