Support for newkeypress added