Implemented ToBytes in KeepAliveMessage.