[main.js] Update keydown event