modified to catch shift+insert key for pasting

this is in addition to the paste key sequence (which is usually
control+v)
added support for toggle insert or overwrite mode

the insert key toggles the current mode