Is Keyboard not working properly in Ubuntu 8.10?

Recently I have updated my Ubuntu machine at office from 8.04 (Hardy) to 8.10 (Intrepid Ibex). Surprisingly my keyboard was not working properly specially the arrow keys, HOME and END keys. Then I searched through google and found a quick solution. That I am sharing here to help others who may face this problem.
Just run the following command in the terminal all keys of your keyboard will work.

$ setxkbmap -model evdev

Thanking everyone and welcomed to share.

NB. This is not a permanant solution. But works for a single login. After restarting it will need to run the command again.