Adding text edit events, and tests for keyboard.