I found out you could use lists to detect keys which couldn't be detected by the if key pressed block so I made this left arrow key to delete