Use keypress events to update editor atomic number.

Change-Id: I30ccc0ff97057926d48955d7d2b09c9c937207f5
Merge topic 'editor-keys' into master

5262712a Use keypress events to update editor atomic number.