Do not ignore the bad behavior. Make them stand still, and when they understand what you want and they stay still give them a treat like a piece of carrot. It works with my horse Dante.
Horses will heavily doze standing up, but for sleep they must sleep laying down. Lighter sleep can be gotton with their legs curled up under them. They need only a few hours of deep REM sleep each...