Fix: inputpreview and keyup/keydown event