sometimes when im using a program the mapping of my keyboard changes mappings... like now!

pressing the question mark backslahsh key is é
and the tilda is #
the square brackets are ^¸

and aggravating . apparently this is the french keyboard or something.... it happens apparently wo cause and only in one program at a time, if i close it and restart the app then its fixed, ne ideas ne1...