Add raw terminal keypress handling