Spend a few minutes each day training him to go to his bed when instructed. You can do this by simply giving the command, pointing and then luring him to his bed with a treat. Once he's there, give him the treat as a reward. You can then use this to send him to his bed if he tries to come upstairs at night.