Fix: down-arrow and enter key throwing error when input field is empty