Let’s write a text editor.
When pressing the Enter button, a new p element should appear at the end of the body.
When you press the keys, the last character should be added to the inner text of the last paragraph.
When you press the buttons - Shift, Alt, Control, Ctrl - nothing should happen.
When you press the Backspace button, you need to delete the last character of the inner text in the last paragraph.
Use the internal script.

This task is part of the Full-Stack JavaScript Course
If you have any issues with it, you can ask for community help below the post
Feel free to help others if you’ve already solved the task

index.html

<!DOCTYPE html>
<html>
  <head>
    <title>Text editor</title>
  </head>
  <body>
    <p></p>
  </body>
</html>