Added support for ibmpc term type and improved keyboard support.