macos – The keyboard acts strangely when using certain applications

My problem is that when I type text in Dropbox Paper or Custom CSS WordPress or Facebook, my keyboard works strangely. When I want to delete a character, two characters are deleted instead of one, and when I use the Enter key, there are two two new lines instead of one.

I am on a MacBook Pro 2017.

Does anyone have a solution for this?