fixed keypress simulation for special chars