[tty] Refactoring and isolate canon mode key press handler
[tty] Refactoring and isolate canon mode key press handler

vvaltchev/experimentOs,vvaltchev/experimentOs,vvaltchev/experimentOs,vvaltchev/experimentOs