combined keyup and keydown