keyup/down fix