Added keydown event in public/javascripts/index.js.