Serial problem

I have a project that I am using a 4x4 keypad to perform a function that drives 16 servos from one position to the other. It works ok. I want to introduce a remote keypad which I have built with a Mini Pro serial writing the key pressed to a HC-12. This works fine. If I use the following testcode in an UNO with the 2nd HC-12 connected to the RX0 input I can see the keypresses from the remote keypad perfectly, however if I load the code into a MEGA I get nothing, I am using RX0 on the MEGA, Am I missing something?

int incomingByte = 0; // for incoming serial data

void setup() {
  Serial.begin(9600); // opens serial port, sets data rate to 9600 bps
}

void loop() {
  // send data only when you receive data:
  if (Serial.available() > 0) {
    // read the incoming byte:
    incomingByte = Serial.read();

    // say what you got:
    Serial.print("I received: ");
    Serial.println(incomingByte, DEC);
  }
}

The Mega has multiple (4) hardware serial ports. Use Serial1 (or Serial2 or Serial3) for the HC-12. That way you can use Serial (USB) to download, troubleshoot and get program output.

Thanks I got it just before reading your reply by reading another post, heres the test code I used in case it's useful to another.

int incomingByte = 0; // for incoming serial data

void setup() {
  Serial.begin(9600); // opens serial port, sets data rate to 9600 bps
  Serial1.begin(9600); 
  }

void loop() {
  // send data only when you receive data:
  if (Serial1.available() > 0) {
    // read the incoming byte:
    incomingByte = Serial1.read();

    // say what you got:
    Serial.print("I received: ");
    Serial.println(incomingByte, DEC);
  }
}

Perhaps you are interested in using a serial data transfer library for sending commands and whatnot over your bluetooth module