add message when a key is entered but state isn't valid