I take it you mean in real life? Well, actually blatant handballs in the box do result in penalties.
The "free kick in the box" thing you're describing is usually from a back pass to the keeper. (Back pass meaning the defender intentionally passes from his foot to his keeper's hands.) :)