Add keypress handler
Comply with JSHint
Merge branch 'master' into gh-pages