Update main.js

I modified the 'keypress' to 'keyup' to fix an issue when recognising that return is being pressed- i think it has something to do with delegation, but I'm really new to this stuff.

http://stackoverflow.com/questions/2777148/keypress-event-not-being-triggered-only-at-start-and-end-of-text-field-in-firefo