terminal: Only hide cursor for keypresses that generate data for the process