use input instead of keyup