Currently term.js controls the keystrokes of the whole document.
Therefore input form elements, text areas etc... on the same document can not be typed.
By checking the type of element we can overcome this.
check if element is a focusable element to send keys instead of terminal
Focus has been improved a lot recently due to a similar change. Thank you though.