Shoot the boxes and don't let the sheriff touch the ground.
Use mouse to shoot.
A context menu should be shown when right-clicking or, on touch devices, long-pressing in the game. This menu especially allows to play in full screen and control the volume.