Clean up console keydown code, with keylib to make it readable.
Remove code completion from console.js.
Run commands in the console with events.