Adding backspace functionality to text input

At the start of my game I'm working on, I've allowed the player to name their character with a 'name input processing' event. However, I noticed by default, ESC is the back key, not Backspace. Is there anyway to change this?

Thanks in advance.
Use this

View attachment Backspace for input name.js


Thank you! Just what I needed 😀

Original thread: https://forums.rpgmakerweb.com/threads/adding-backspace-functionality-to-text-input.60272/