Allow close prompt with keyboard