simulation keyboard and mouse of input event