keys for brightness don’t work on OS X laptop anymore

Apple OSX

Somehow it always seems to happen after using a laptop for a while: the screen brightness control via function keys stops working. No idea why, no any of those modifiers like ‘alt’, option, fn command don’t help either. It’s probably a pretty strange hack, but Amit’s code to control the screen brightness works like a charm.