onKeyPress not working with $e

Hi,
I am using $e and it is working fine for buttons.
But when I try to use it for text input I keep getting the following error:
Error: Cannot assign to read only property ‘onKeyPress’ of object ‘#’ (on wix-event-wrapper line 32)
When I replace the $e with the usual $w it gives no error.

It seems that there is a specific problem with elements that have the “onKeyPress” event because in button elements (that don’t have the “onKeyPress” event at all) the $e works fine.

In my program I really need this to work also for the onKeyPress, as well as for the onClick event of the text input element.
Would really appreciate any insight.

Maybe you want to show the working (not working code first) in a new opened post instead of bumping up old ones.

Please show your working (not working code).

Since your post have been moved into a new separate one (and your post was inside an old one, which was about REPEATER and SCOPES, as i can remember), would be nice to see first your setup and what you have done already.