Keys and lives that are sent to you are credited to your account when you first sign onto Buggle 2, not when you accept the message.
However, you cannot have more than 5 lives or 3 keys at any given time, so if your friend sends you a life or key when you are full, you cannot receive those lives or keys.