Only allow up-arrow editing if the input is empty