Sending a Single SerialPrint command???

byte pressed1 = (PinTwoActive && digitalRead(PinTwo));

if (pressed1)
{
if (pressed1 != lastPress1)
{

Serial.print ("{RH}");
}
}
{
lastPress1 = pressed1;
}

i am wanting this command to be sent once per time....
and the moment this code sends it twice..sometimes 3 times.

please tell me how to get it sent only once everytime

thankyou

Move this
lastPress1 = pressed1;

inside these brackets

{

Serial.print ("{RH}");
}

It could be contact bounce.
Try a 25 mS dealy after the print.