Yes, sorry about that!
When I conceived that problem, I had forgotten that Mac computers have a key that is labeled "Delete" on the keyboard, but it is actually mapped to the BACK_SPACE key in programming languages, due to it's having backspace functionality (deleting the thing behind the cursor), as opposed to the delete key on Windows, which deletes the thing in front of the cursor.