Added catch for ArrayIndexOutOfBoundsException to make sure that when
someone types one of the key characters but without the ":" it will give
him an error.