Switched the implementation of key-input in TextBox from individual methods to messaging (the "Message" method).