[Bug 541351] smarter way to set the hal keyboard properties