fix for "bad keys"; set in raw mode