How to I fix an issue where password boxes using GTK type vertically?

I have accidentally pressed a key shortcut, and now all my passwords are typed vertically! It’s only passwords, and persists between reboots.

Here’s a picture:

Image

If I turn on “Show password”, it works fine.

Image

How do I fix this?