Added command mode and keyboard control

Added command mode with quit and escape. Edit mode with movement keys
and characters keys.