fix key code for angle restriction

move relative zero when closing line sequence