I’m working on my own chatbox, however I’m having some issues trying to figure out where to place the cursor (the blinking line thing). It’s easy to just put it at the end of what the users typing, but I’m not sure how to go about controlling its movement with the arrow keys. The only idea I could think of was using **[Input.IsKeyDown
http://wiki.garrysmod.com/favicon.ico](http://wiki.garrysmod.com/?title=Input.IsKeyDown)**, so if the right arrow key is down, move the cursor 1 character right every x frames/seconds. This seems a bit hacky though, I was wondering if there was an easier way to do it.
(Note, I’m not trying to move the point where the text is inserted, GMod seems to do that for me, I just need to move the cursor to match up with it.)