terminal: rewrite hw key handling, cleanup, add modifiers and F-keys
Use text from keyEvent for capslock and basic cyrillic text support. Added modifiers for arrows, editing keys, backspace tab and enter. Added Insert and F1-F12. Cleaned up the parsing, removed some useless toLatin1() usage.
Showing with 143 additions and 65 deletions