結果 : how to detect keyboard input in javascript