Handle key press/releases when dragging