Removed the need for requestAnimationFrame polyfill when option
hideOnFocus is false, using the keyup event instead.