HarwareSerial.h

But couldn't receive data "key1" to the variable c.

How do you know? What is connected to the software serial pins - 2 and 3?