Prevent angle change on key down when a modal is open