Don't override keyboard if in an input element

Without this change, when a cell template had a text input element, you couldn't use cursor keys to navigate inside the text area.