fix terminal not starting; fix keyboard support