I found the project Word Processor v3.6.1 by @griffpatch and realized that some of the keys like backspace and shift don't work in scratch 3.0. So I replaced them with ` and /. This version has the bug fixed! Please tell me if there are any glitches.
All the credit goes to @griffpatch!