Well the input box works, its just after passing the box the input goes off out of the box. The natural way and expectancy of an input box is for the box to follow along if the text gets to the end of the box. I am just not sure a solution on how to implement this.

This code was found and i modified it a little to handle @, and shifting, I didnt think any other special characters would be needed