Typing works for nearly all keys

Tab and backspace are only major ones left.
Also added caps lock function.