There isn't really any special trick to remain calm in a dream, it's just something that you do. It's the same with fear, you just take control over it, so it doesn't take control over you. Practice makes perfect though! The more you lucid dream, the more you get used to the feeling of it, and how easier it will be to not wake up from excitement.