Added handling of ENTER press to the input filed