resolved deprecated function call onkeypress

Fixes bug introduced in https://github.com/concrete5/concrete5/commit/1e28ae943d7aad572093b24e830782005c7dc62c.

Bug tracker: http://www.concrete5.org/developers/bugs/5-6-2-1/javascript-errors-when-adding-select-attribute-values/