read keyboard event between 1-9 and trigger delete