Fix Up/Down keypress support on console