結果 : how to simulate keyboard input in javascript