結果 : how to simulate keypress in javascript