Add type_single_keystroke() for testing
Add assert