Handle left and right to close popup and stop catching up and down.
Documentation.