add keyboard exit