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.

I am a simple man living in this world working in IT field. I love Music, playing soccer, traveling new places. By profession I am a software engineer and enjoy my job. I love researching on new technologies such as programming languages.
i get an error when running that, after a while of splelunking the internet, i found a partial workaround, but this does DISABLE your multimedia keys.
add this to your xorg file. /etc/X11/xorg.conf
Section “ServerFlags”
Option “AutoAddDevices” “off”
EndSection
hi. got the same problem. fortunately works for me. thx.
had exactly the same problem, but this fixed it – thanks!
Worked for me also! Thanks for sharing!!
THX it works perfectly
what would be a permanent solution for this problem??
Thank you very much. I was searching for a solution since two-three days and visited all the Ubuntu forums and google links, but none gave a solution to this problem. Even the Ubuntu experts are making it complicated with tedious solutions.
Thank you.
But urs was a simple one and the important part is that it worked
Your solution(http://www.saifur.com/2008/11/21/is-keyboard-not-working-properly-in-ubuntu-810/) should come in the first page of google search so that it helps all.
hi
but now have problem with f5 and also if you want to go to the and of line cant press the key and wait for reaching the end but you have to press it repeatedly
Awesome post!! fixed my issue as well!
thanks, that worked for me
Very very good article !! I love it. I felt very good and stress free after reading this article. I will also forward this article to my friends also.
very good! Worked for me! Thank you very much
Hello.
The interesting name of a site – http://www.saifur.com, interesting “http://www.saifur.com/2008/11/21/is-keyboard-not-working-properly-in-ubuntu-810/” here is very good.
I spent 1 hours searching in the network, until find your forum!