Ignoring transmitter input and loitering once geofence is hit

Hi, I’m wanting to configure my drone (pixhawk octo) so that once it hits its geofence max altitude it will just sit there and hover, ignoring all transmitter input. How should I go about doing this?

Thanks.