Read inputValue instead of value at press of enter