I suspect the problem is that the way the keyboard is handled in X, is not the same it is done in the console. It is not quite clear if you want to do this in text mode or graphics mode. The full currently active keymap can be obtained with. After sudo loadkeys jp the keymap changed as expected. Pretty pretty pleeeeeeease with cream and a cherry on top?
nest...