Making a console for game (Typing into game actually)

Hello,

How does one make a “console” like console in Counter Strike or some other game (CS comes first to my mind when I think about a word console). What I’m interested in particular is typing part. All the rest isn’t that confusing to me.

I could make it happen somehow but it would be very messy. Any great suggestions or experiences on typing info into game?