Make a program that accepts input from the user, similar to BASIC's INPUT routine. This time, you manually make the input routine yourself. The program has to be able to accept input from the keyboard and it must be contained in the string variable Inputted$. When the user presses Enter, the inputting must end with the input in Inputted$. When the user presses Backspace, the last character in Inputted$ will be deleted except when there are no more characters left. When the user presses Esc, the inputting must end and whatever that was entered will be discarded and Inputted$ will contain the Escape character. All other printable characters will be added to Inputted$. Also, the input must be echoed to the screen. (At the same location, mind you). Characters deleted must also be erased from the screen.
Notes: You will use the CHR$ function or ASC function for determining the character entered and you may use either the INPUT$ or the INKEY function for the character input.
ASCII character 8: Backspace character
ASCII character 27: Escape character
ASCII character 13: Return character
ASCII character 32 and above: Printable characters