Laptop keyboard messed up after external keyboard plugged [xubuntu]

view story

http://askubuntu.com – I'm running xubuntu 12.04 on a 2007 macbook. I'm using the laptop with external screen, keyboard and mouse Yesterday after a dist-upgrade and after I unplugged the external keyboard i noticed that the lapotop's keyboard was mapped to whatever (J = 1 , L = 3 , M = 0 e.t.c.) however i can login and type perfrectly in the login screen and as a guest. Any suggestions on how to get more information and/or troubleshooting are welcome (HowTos)