Add keypress handlers.
Add insert and delete modes.