Chat box glitch

I was playing blacknyak when I left the table, I wasn’t able to move my character. When I try to hit wasd it just types into the chat bar. Hitting enter does not fix my problem. What should I do? Playing on windows 10 on pc

You may have accidentally toggled Direct Chat mode; you can disable it again by hitting the ScrlLock key, or via the options menu.