i've tried to boot the comp in safe mode (press f8 when it boots) but i still get the problem

the keyboard works fine untill i finish entering my password then it locks up

my next option is to reformat but i don't want to do that