Break out specialKey and delKey recognition into keyPress and keyDown methods.