Focus container when arrow/navigation keys are pressed

Fixes #4222

Whenever the arrow keys, page up/down and home/end are pressed and unhandled, the container is focused (if needed) to make sure that native keyboard navigation works as expected.

If there's any element (other than `<input>`, `<textarea>` or `<select>`) that should be excluded from this feature, let me know.