I'm not sure of how to create an event listener that takes text from an input and sends the input to a variable on javascript. Then, the variable will produce another output. For example, if you type "f" (forward) on the text box, the variable will have to make that input equal to a number.

```
<input type="text" id="textinput">
</input>
<button type="button" onclick="console()" id="click">Try it</button>

var console = function() {
  $("#textinput").val();
  if (console == "hi") {
    alert("#text input was also hi");
  }
}

```