Update application.js

Removed preventdefault from keypress event listener.