This is just to say that the problem was solved. I installed once again KDE as I've told you, kdm and what I believe were all the necessary libraries!
Than, I check for the keyboard configuration using KDE and, as usual, it worked correctly!
After that, and because I don't want to use KDE (sorry, it's only a matter of taste
) I removed it but, here is the difference, I picked one by one the packages to remove: kdebase, kdebase-data, kate, kwrite, kpalm... all the ones I tought I didn't need.
The first time I had removed KDE I used
Code:
# apt-get remove libarts2
which removed entirely KDE desktop environment with one single command !!!
This time I left kdm and some other libraries and somehow I think that could had sometihing to do with my keyboard misconfiguration.
The first time I logout and loged back in with gdm all my configuration where kept intact and correctly working!
So here it is my thanks for everyone who helped me