Changed kesydown event to input event