Let's make a fake typing effect. When an user types on the keyboard, instead of showing the user the real text they typed, we will instead show them some other text (something similar to [hacker typer](https://hackertyper.net/)). ## HTML Normally, to get user keyboard input, an element like ``. The problem is, `` actually shows what the user types. Usually, this is good. For us, not good. So we will instead be using ` ``` ## Javascript This is the bulk of the program. First of all, we have to detect when the keyboard is pressed. To do this, we just need to add an event listener to the document. ```js document.addEventListener("keyup", function(_event) { //we haven't written this code yet }); ``` The first parameter is the event name we are listening for: `"keyup"`. The `"keyup"` event is emitted whenever a key on the keyboard is released. The second parameter of the `addEventListener` function is the callback function that is run whenever the `"keyup"` event is emitted. The `_event` parameter of that function is a [KeyboardEvent](https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent), that contains information about the emitted event, like what key was pressed. In this case, we don't need any of that information, so I put an underline in front of the parameter name (`_event`) to indicate we will not use it. In Javascript, we can actually get rid of the `_event` parameter all together, and the code will still work. But I'm keeping it since I like knowing it exists. Now that we can detect key presses, we want the ` ``` See a demo of the above [here](https://demos.prussiafan.club/demos/fake-typing-effect).