Basic process key framework
Define macro and method to define typing mode
Fix valid-word?, macro, process-key now works