What exactly did not work? System Preferences? Accessibility?
Be as precise as you can.
What Mac OS X version do you use and does it also happen in another, even temporarily created, user account (if you can access System Preferences at all)?
unfortunately my keyborard doesn;t have any function keys f5?