I have issues with the keymap of my NX session being garbled.
I have a Macbook Air running OS X Lion. I use OpenNX to start a session with an Ubuntu server running F
Try to change your Shell from tcsh to bash. Tcsh cause keyboard problem.