Up/Down arrow to move between lines Left arrow to delete most recently written character Update: I somehow made it like 50 times faster. Don't know how that happened lmao. The major benefit to this system is that you can detect things like carets without overriding commas and periods. Having commas and periods isn't super important when coding, but it's a nice thing to have.