fixed KeyListener which was logging '\r'