Type out a word. Press space to check the word. Left arrow key to delete a letter. Down arrow to delete the current guess 0 to force reset and get a new word.
Credit to Wordle for inspiration All code by me