just curious why this needs an `$apply` if it's executed within a `$document.keydown`?