fixed keyup input handler