What type of computer or device? It sounds as if you've invoked a different language such as Arabic or Hebrew that is written right to left. If you ignore the direction and type the letters of your password as normal it will probably be accepted, assuming the correct characters are issued by the keyboard in the mode that you've found.
tt2