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.
Merge pull request #1467 from paviad/patch-1

Don't override keyboard if in an input element