add hack to fix terminal keyboard input

it's ugly, but it works! :bomb: :thumbsup: