Only register the keyUp handler once, and only process keys if the word index is within bounds