You can keep bees indoors if you have the riight carpentry skills to give them a secure bee-proof tunnel to the outside world.
My father and his friend had an exhibition glass sided beehive which stood on a lab bench at their school for their pupils to see the way bee society worked. There was a 2" x 1" x 3' wooden tube running up to a hole in the wooden surround of a window with a small plywood landing ledge/lip/doorstep.
Bear in mind that bees need to have ventilation and if overheated or too cold they will either die or decamp to somewhere nicer.
