If you are on a SPARCTM system, do the following:
Find another machine and remote log in to this system
Run the following command:
$ /usr/openwin/bin/kbd_mode -a
kbd_mode is not a windows program; it fixes the console mode.
If you are on an IA system, do the following:
Log in remotely and start
kill the X server or reboot the system