[main.js] Add keydown event (left, up, right and down buttons)