Happens to me too.

I close firefox. Kill the process from the task manager and then open firefox again

I haven't found out a good solution for it

EDIT :
It has nothing to do with Keylogging