Add new keycodes

Add caps-lock, home and end keys to util.js
This is used to improve completer.js.